8287902: UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows

Reviewed-by: naoto
This commit is contained in:
Magnus Ihse Bursie 2022-06-10 10:07:10 +00:00
parent 0901548833
commit 975316e3e5

@ -34,7 +34,9 @@ public class MissingResourceCauseTest {
callGetBundle("PrivateConstructorRB", IllegalAccessException.class);
callGetBundle("AbstractRB", InstantiationException.class);
callGetBundle("BadStaticInitRB", ExceptionInInitializerError.class);
callGetBundle("UnreadableRB", IOException.class);
if (!System.getProperty("os.name").toLowerCase().startsWith("win")) {
callGetBundle("UnreadableRB", IOException.class);
}
callGetBundle("NoNoArgConstructorRB", InstantiationException.class);
}