Skip to content

Commit 2c7fd76

Browse files
thscthsc
authored andcommitted
minor change in test
1 parent 8fe650c commit 2c7fd76

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

test/BasicTests.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,18 @@ private void removeDirectory(String dirname) {
4343
File file = path.toFile();
4444
if(file.isDirectory()) {
4545
this.removeDirectory(file.getAbsolutePath());
46+
boolean deleted = file.delete();
4647
} else {
47-
file.delete();
48+
boolean deleted = file.delete();
4849
}
4950
}
50-
51+
5152
// finally remove directory itself
52-
dir.toFile().delete();
53+
File dirFile = new File(dirname);
54+
if(dirFile.exists()) {
55+
boolean deleted = dirFile.delete();
56+
int i = 42;
57+
}
5358
}
5459

5560
@Test
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)