[tests] Adjust expected result of looking for 'mono_native_initialize'. Fixes xamarin/maccore#1809. (#6806)
Fixes https://github.com/xamarin/maccore/issues/1809.
This commit is contained in:
Родитель
37e7023a0a
Коммит
e4a926e8f2
|
@ -107,7 +107,9 @@ namespace Xamarin.Tests
|
|||
|
||||
try {
|
||||
#if MONOTOUCH_TV || MONOTOUCH_WATCH // on tvOS/watchOS we emit a native reference for P/Invokes in all assemblies, so we'll strip away the 'mono_native_initialize' symbol when we're linking statically (since we don't need the symbol).
|
||||
var has_symbol = MonoNativeConfig.LinkMode != MonoNativeLinkMode.Static || Runtime.Arch == Arch.SIMULATOR;
|
||||
// The 'strip' tool that comes with Xcode 11 has some black magic where it removes the symbol from the executable, yet tvOS is still able to lookup the address from the symbol.
|
||||
// So apparently we'll always be able to find the symbol. Leaving the old logic as comments for a time, since I don't quite trust the new behavior.
|
||||
var has_symbol = true; //MonoNativeConfig.LinkMode != MonoNativeLinkMode.Static || Runtime.Arch == Arch.SIMULATOR;
|
||||
#else
|
||||
var has_symbol = true;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче