jdk/test/tools/launcher/Arrrghs.java
changeset 14763 c16fa130fa23
parent 13416 9732a77088fe
child 15523 cc0ee864bfb5
--- a/jdk/test/tools/launcher/Arrrghs.java	Thu Dec 06 21:55:55 2012 -0800
+++ b/jdk/test/tools/launcher/Arrrghs.java	Sun Dec 09 07:43:12 2012 -0800
@@ -27,7 +27,7 @@
  *      6894719 6968053 7151434 7146424
  * @summary Argument parsing validation.
  * @compile -XDignore.symbol.file Arrrghs.java
- * @run main Arrrghs
+ * @run main/othervm Arrrghs
  */
 
 import java.io.BufferedReader;
@@ -204,8 +204,7 @@
         // exiting the process prematurely can terminate the stderr.
         scratchpad.add(javaCmd + " -version " + inArgs);
         File batFile = new File("atest.bat");
-        java.nio.file.Files.deleteIfExists(batFile.toPath());
-        createFile(batFile, scratchpad);
+        createAFile(batFile, scratchpad);
 
         TestResult tr = doExec(batFile.getName());