[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:
Rolf Bjarne Kvinge 2019-08-21 13:30:33 +02:00 коммит произвёл GitHub
Родитель 37e7023a0a
Коммит e4a926e8f2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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