diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
commit | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (patch) | |
tree | e5435159cd1bf0519276363a6fe1663d1721bed3 /tests/src/readytorun/main.cs | |
parent | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (diff) | |
download | coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.gz coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.bz2 coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.zip |
Imported Upstream version 1.0.0.9127upstream/1.0.0.9127
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 |