xamarin-macios/tests/mtouch
Rolf Bjarne Kvinge ddd7d4cc19
[tests] Fix Xamarin.Linker.SdkTest.NoAssemblyReferenceInAttributes. Fixes #4241. (#4269)
It seems Cecil doesn't search next to the current assembly for any assembly
references, which means that it may fail to resolve assemblies in certain
circumstances:

    Failed files
    Expected: <empty>
    But was:
        Failed to process /work/maccore/xcode10/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/2.1/OpenTK.dll: Failed to resolve assembly: 'monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
        Failed to process /work/maccore/xcode10/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.TVOS/OpenTK-1.0.dll: Failed to resolve assembly: 'Xamarin.TVOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
        Failed to process /work/maccore/xcode10/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.iOS/OpenTK-1.0.dll: Failed to resolve assembly: 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'"

However, Cecil does search the current directory by default, so before loading
any assemblies, change the current directory to the directory of the assembly
we're loading.

Fixes https://github.com/xamarin/xamarin-macios/issues/4241.
2018-06-15 17:32:22 +02:00
..
.gitignore [tests] Import 2016-05-26 15:06:52 +02:00
Cache.cs [mtouch tests] Add Cache. 2017-01-05 10:43:55 +01:00
InlinerTest.cs [linker] Add an well known candidate inliner substep along with tests (#1513) 2017-01-17 21:49:44 -05:00
LinkerTests.cs [tests] Share supporting code between the mtouch and mmp tests. (#3374) 2018-02-02 07:09:04 +01:00
MLaunchTool.cs [generator] Add unit test project, and port a few tests over from the makefile tests. (#2299) (#2304) 2017-07-11 08:52:24 +02:00
MTouch.cs Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
MTouchTool.cs [mtouch] watchOS extensions are top-level containers. Fixes issue #3930. (#3934) (#3937) 2018-04-17 21:15:33 -04:00
Makefile [mtouch tests] Update Makefile to NUnit3 syntax for helper text/targets. (#1171) 2016-11-11 17:47:54 +01:00
MiscTests.cs [tests] Ignore mtouch tests that require device support if device support was not included in the build. (#1109) 2016-11-03 13:20:31 +01:00
RegistrarTest.cs [registrar] Don't throw NRE when finding methods that almost implement optional protocol members. (#3658) (#3659) 2018-03-06 14:40:45 +01:00
SdkTest.cs [tests] Fix Xamarin.Linker.SdkTest.NoAssemblyReferenceInAttributes. Fixes #4241. (#4269) 2018-06-15 17:32:22 +02:00
StringUtilsTest.cs [mtouch][mmp] Allow the use of major-only version numbers in arguments. Fixes #60280 (#3029) 2017-11-23 11:16:30 -05:00
TimingTests.cs [tests] Share supporting code between the mtouch and mmp tests. (#3374) 2018-02-02 07:09:04 +01:00
mtouch.csproj [mmp] Add stripping of 32-bit dylibs to work with new App Store restrictions (#3387) (#3633) 2018-03-02 14:33:27 +01:00
mtouch.sln [tests] The mtouch tests now require Cecil, so add the expected project reference to the solution. (#1568) 2017-01-27 07:32:44 +01:00
packages.config [tests] Update to NUnit 3 in mtouch tests. (#1119) 2016-11-07 12:22:37 +01:00
runSingleTest.sh [tests] Import 2016-05-26 15:06:52 +02:00