test/jdk/java/util/ResourceBundle/modules/visibility/VisibilityTest.java
changeset 55680 cd48f8f260c8
parent 52584 5ab248e47901
--- a/test/jdk/java/util/ResourceBundle/modules/visibility/VisibilityTest.java	Mon Jul 15 15:27:06 2019 +0200
+++ b/test/jdk/java/util/ResourceBundle/modules/visibility/VisibilityTest.java	Mon Jul 15 10:21:33 2019 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -329,6 +329,8 @@
 
     private int runCmd(List<String> argsList) throws Throwable {
         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
+        launcher.addToolArg("-ea")
+                .addToolArg("-esa");
         argsList.forEach(launcher::addToolArg);
 
         return ProcessTools.executeCommand(launcher.getCommand()).getExitValue();