changeset 1112:492a000a7aea

jmh-core-it: cleanup temporary files after test.
author shade
date Fri, 30 Jan 2015 12:38:32 +0300
parents 3b6a26e95f58
children c91c58440dd0
files jmh-core-it/src/test/java/org/openjdk/jmh/it/result/ResultFileNameTest.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/result/ResultFileNameTest.java	Fri Jan 30 12:05:32 2015 +0300
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/result/ResultFileNameTest.java	Fri Jan 30 12:38:32 2015 +0300
@@ -83,7 +83,9 @@
                 .build();
         new Runner(opts).run();
 
-        Assert.assertTrue(new File(name).exists());
+        File file = new File(name);
+        Assert.assertTrue(file.exists());
+        file.delete();
     }
 
 }