Skip to content

Commit 60ceffe

Browse files
committed
check mkdirs()
1 parent d1243dc commit 60ceffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/SCCSRepositoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.nio.file.Files;
3131

3232
import static org.junit.jupiter.api.Assertions.assertEquals;
33+
import static org.junit.jupiter.api.Assertions.assertTrue;
3334
import static org.opengrok.indexer.condition.RepositoryInstalled.Type.SCCS;
3435

3536
/**
@@ -45,7 +46,7 @@ class SCCSRepositoryTest {
4546
private void testIsRepositoryFor(final String fileName, boolean shouldPass) throws IOException {
4647
File tdir = Files.createTempDirectory("SCCSrepotest" + fileName).toFile();
4748
File test = new File(tdir, fileName);
48-
test.mkdirs();
49+
assertTrue(test.mkdirs(), "failed to create directory");
4950
tdir.deleteOnExit();
5051
test.deleteOnExit();
5152
SCCSRepository instance = new SCCSRepository();

0 commit comments

Comments
 (0)