changeset 55531:c868b89c7dd9

8226869: Test java/util/Locale/LocaleProvidersRun.java should enable assertions Reviewed-by: naoto
author clanger
date Fri, 28 Jun 2019 20:46:25 +0100
parents 6aa047de311b
children 6546a2ae6773
files test/jdk/java/util/Locale/LocaleProvidersRun.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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")