Skip to content

Commit 00120df

Browse files
committed
[monotouch-test] Fix the Symbols test for CoreCLR.
1 parent 83ccbfd commit 00120df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/monotouch-test/mono/Symbols.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ public void FunctionNames ()
1616
bool nativeaot = symbols [1].Contains ("MonoTouchFixtures_Symbols__Collect");
1717
bool llvmonly = symbols [1].Contains ("mono_llvmonly_runtime_invoke"); // LLVM inlines the Collect function, so 'Collect' doesn't show up in the stack trace :/
1818
bool interp = false;
19+
bool coreclr = false;
1920

2021
if (!aot) {
2122
for (int i = 0; i < 5 && !interp; i++) {
2223
/* ves_pinvoke_method (slow path) and do_icall (fast path) are
2324
* MONO_NEVER_INLINE, so they should show up in the backtrace
2425
* reliably */
2526
interp |= symbols [i].Contains ("ves_pinvoke_method") || symbols [i].Contains ("do_icall");
27+
28+
coreclr |= symbols [i].Contains ("ExecuteInterpretedMethod");
2629
}
2730
}
2831

29-
Assert.IsTrue (aot || interp || llvmonly || nativeaot, $"#1\n\t{string.Join ("\n\t", symbols)}");
32+
Assert.IsTrue (aot || interp || llvmonly || nativeaot || coreclr, $"#1\n\t{string.Join ("\n\t", symbols)}");
3033
}
3134

3235
void Collect ()

0 commit comments

Comments
 (0)