[tests] Detect NativeAOT correctly in the Symbols test
This commit is contained in:
Родитель
901be39925
Коммит
31052141e7
|
@ -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 ()
|
||||
|
|
Загрузка…
Ссылка в новой задаче