[tests] Detect NativeAOT correctly in the Symbols test

This commit is contained in:
Rolf Bjarne Kvinge 2023-06-21 20:49:52 +02:00
Родитель 901be39925
Коммит 31052141e7
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -20,6 +20,7 @@ namespace MonoTouchFixtures {
Collect ();
bool aot = symbols [1].Contains ("MonoTouchFixtures_Symbols_Collect");
bool nativeaot = symbols [1].Contains ("MonoTouchFixtures_Symbols__Collect");
bool llvmonly = symbols [1].Contains ("mono_llvmonly_runtime_invoke"); // LLVM inlines the Collect function, so 'Collect' doesn't show up in the stack trace :/
bool interp = false;
@ -32,7 +33,7 @@ namespace MonoTouchFixtures {
}
}
Assert.IsTrue (aot || interp || llvmonly, $"#1\n\t{string.Join ("\n\t", symbols)}");
Assert.IsTrue (aot || interp || llvmonly || nativeaot, $"#1\n\t{string.Join ("\n\t", symbols)}");
}
void Collect ()