aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2013-07-04 13:46:51 (EDT)
committerRoland Grunberg2013-07-04 15:30:45 (EDT)
commitd4ddc8225334a2d1183f33d61405b1860c34b59f (patch)
treebb40f810bfad6bd3bde38eff91712b60b2a20e01
parent7a6f715f4a2730a82c6eb404788721525a1a1b64 (diff)
downloadorg.eclipse.linuxtools-d4ddc8225334a2d1183f33d61405b1860c34b59f.zip
org.eclipse.linuxtools-d4ddc8225334a2d1183f33d61405b1860c34b59f.tar.gz
org.eclipse.linuxtools-d4ddc8225334a2d1183f33d61405b1860c34b59f.tar.bz2
Perf: Save session tests should fail if test files cannot be deletedrefs/changes/77/14277/2
Change-Id: Ibdae955a7c81e5560311408260a6c7e74b6077e4 Reviewed-on: https://git.eclipse.org/r/14277 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--perf/org.eclipse.linuxtools.perf.tests/src/org/eclipse/linuxtools/internal/perf/tests/SaveSessionTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/perf/org.eclipse.linuxtools.perf.tests/src/org/eclipse/linuxtools/internal/perf/tests/SaveSessionTest.java b/perf/org.eclipse.linuxtools.perf.tests/src/org/eclipse/linuxtools/internal/perf/tests/SaveSessionTest.java
index 960a378..c55ae75 100644
--- a/perf/org.eclipse.linuxtools.perf.tests/src/org/eclipse/linuxtools/internal/perf/tests/SaveSessionTest.java
+++ b/perf/org.eclipse.linuxtools.perf.tests/src/org/eclipse/linuxtools/internal/perf/tests/SaveSessionTest.java
@@ -14,6 +14,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
import java.io.File;
import java.util.ArrayList;
@@ -41,7 +42,9 @@ public class SaveSessionTest {
@After
public void tearDown(){
for (File file : testFiles) {
- file.delete();
+ if(!file.delete()){
+ fail();
+ }
}
}