diff options
Diffstat (limited to 'tests/src/readytorun/main.cs')
-rw-r--r-- | tests/src/readytorun/main.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/src/readytorun/main.cs b/tests/src/readytorun/main.cs index cce03b4586..bbdd101759 100644 --- a/tests/src/readytorun/main.cs +++ b/tests/src/readytorun/main.cs @@ -345,17 +345,9 @@ class Program static void TestMultipleLoads() { if (!LLILCJitEnabled) { - try - { - new MyLoadContext().TestMultipleLoads(); - } - catch (FileLoadException e) - { - Assert.AreEqual(e.ToString().Contains("Native image cannot be loaded multiple times"), true); - return; - } - - Assert.AreEqual("FileLoadException", "thrown"); + // Runtime should be able to load the same R2R image in another load context, + // even though it will be treated as an IL-only image. + new MyLoadContext().TestMultipleLoads(); } } #endif |