test/jdk/java/util/ResourceBundle/modules/visibility/VisibilityTest.java
changeset 55680 cd48f8f260c8
parent 52584 5ab248e47901
equal deleted inserted replaced
55679:aa96c53c592b 55680:cd48f8f260c8
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   327                 + "Unexpected exit code: " + exitCode);
   327                 + "Unexpected exit code: " + exitCode);
   328     }
   328     }
   329 
   329 
   330     private int runCmd(List<String> argsList) throws Throwable {
   330     private int runCmd(List<String> argsList) throws Throwable {
   331         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
   331         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
       
   332         launcher.addToolArg("-ea")
       
   333                 .addToolArg("-esa");
   332         argsList.forEach(launcher::addToolArg);
   334         argsList.forEach(launcher::addToolArg);
   333 
   335 
   334         return ProcessTools.executeCommand(launcher.getCommand()).getExitValue();
   336         return ProcessTools.executeCommand(launcher.getCommand()).getExitValue();
   335     }
   337     }
   336 }
   338 }