jdk/test/tools/pack200/Pack200Test.java
changeset 18594 b6a3c9f71ac8
parent 15652 edc2e7c83709
child 27565 729f9700483a
--- a/jdk/test/tools/pack200/Pack200Test.java	Tue Jul 02 11:30:31 2013 +0200
+++ b/jdk/test/tools/pack200/Pack200Test.java	Tue Jul 02 05:28:31 2013 -0700
@@ -66,7 +66,7 @@
         }
     }
 
-    private static void doPackUnpack() {
+    private static void doPackUnpack() throws IOException {
         for (File in : jarList) {
             JarOutputStream javaUnpackerStream = null;
             JarOutputStream nativeUnpackerStream = null;
@@ -117,12 +117,13 @@
                 Utils.close((Closeable) jarFile);
             }
         }
+        Utils.cleanup(); // cleanup artifacts, if successful run
     }
 
     /**
      * @param args the command line arguments
      */
-    public static void main(String[] args) {
+    public static void main(String[] args) throws IOException {
         // select the jars carefully, adding more jars will increase the
         // testing time, especially for jprt.
         jarList.add(Utils.locateJar("tools.jar"));