diff options
author | Andy Clement <aclement@pivotal.io> | 2019-03-03 19:00:45 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2019-03-03 19:00:45 -0800 |
commit | f3623cc56e6b6bf03164e1b5cd03a31be5bacd47 (patch) | |
tree | ef04c1e492408392d809065481a49f0be6a6d86f /testing | |
parent | 59177efcaf7fe9e9570ec337393191bbecc495ec (diff) | |
download | aspectj-f3623cc56e6b6bf03164e1b5cd03a31be5bacd47.tar.gz aspectj-f3623cc56e6b6bf03164e1b5cd03a31be5bacd47.zip |
windows compatibility in tests
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/test/java/org/aspectj/testing/FileSpec.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/FileSpec.java b/testing/src/test/java/org/aspectj/testing/FileSpec.java index 2164f38f1..cd11e4026 100644 --- a/testing/src/test/java/org/aspectj/testing/FileSpec.java +++ b/testing/src/test/java/org/aspectj/testing/FileSpec.java @@ -55,7 +55,10 @@ public class FileSpec implements ITestStep { if (toDelete != null) { File targetForDeletion = new File(sandbox, toDelete); if (targetForDeletion.isFile()) { - targetForDeletion.delete(); + boolean b = targetForDeletion.delete(); + if (!b) { + throw new IllegalStateException("Failed to delete "+targetForDeletion); + } } else { recursiveDelete(targetForDeletion); } |