xamarin-macios/tests/mono-native
Rolf Bjarne Kvinge 9713bea70e
[tests][mono-native] Adjust logic which is causing tests to fail on tvOS. (#5877)
Fixes this when running on tvOS using dylibs:

> [FAIL] Introspection.CheckSymbols : dlsym() not found mono_native_initialize()

Now:

* If on iOS, we'll always have the `mono_native_initialize` symbol, because the symbol is used in P/Invoke in a user assembly (the test assembly itself), and mtouch will make the AOT-compiled code use dlsym for P/Invokes in user assemblies (and when using dlsym we can't (native) strip away the symbol).
* If on watchOS or tvOS, we'll have the symbol when we're loading `mono_native_initialize` from a dylib. If loading `mono_native_initialize` from a static library, we can (native) strip away the symbol because mtouch will make the AOT-compiled P/Invoke use a static reference to the native symbol, and thus the `mono_native_initialize` symbol will not be present in the executable.
2019-04-11 19:41:25 +02:00
..
.gitignore [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
AppDelegate.cs [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
Entitlements-mac.plist [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
Info-mac.plist Add missing file. 2018-11-14 13:36:03 -05:00
Info.plist [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
Introspection.cs [tests][mono-native] Adjust logic which is causing tests to fail on tvOS. (#5877) 2019-04-11 19:41:25 +02:00
MacAppDelegate.cs [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
MacMain.cs [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
Main.cs [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00
NativePlatformConfig.cs Remove debug spew. 2019-02-11 13:49:38 +01:00
mono-native-mac.csproj.template Update mono.native corlib test 2019-02-06 23:10:02 +01:00
mono-native.csproj.template [tests] Enable the linker for device builds and disable it for simulator builds in the mono-native tests. 2019-02-18 13:39:31 +01:00