8226869: Test java/util/Locale/LocaleProvidersRun.java should enable assertions
authorclanger
Fri, 28 Jun 2019 20:46:25 +0100
changeset 55531 c868b89c7dd9
parent 55530 6aa047de311b
child 55532 6546a2ae6773
8226869: Test java/util/Locale/LocaleProvidersRun.java should enable assertions Reviewed-by: naoto
test/jdk/java/util/Locale/LocaleProvidersRun.java
--- a/test/jdk/java/util/Locale/LocaleProvidersRun.java	Fri Jun 28 19:36:32 2019 +0000
+++ b/test/jdk/java/util/Locale/LocaleProvidersRun.java	Fri Jun 28 20:46:25 2019 +0100
@@ -159,7 +159,9 @@
     private static void testRun(String prefList, String methodName,
             String param1, String param2, String param3) throws Throwable{
         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
-        launcher.addToolArg("-cp")
+        launcher.addToolArg("-ea")
+                .addToolArg("-esa")
+                .addToolArg("-cp")
                 .addToolArg(Utils.TEST_CLASS_PATH)
                 .addToolArg("-Djava.locale.providers=" + prefList)
                 .addToolArg("--add-exports=java.base/sun.util.locale.provider=ALL-UNNAMED")