git://git.nikiroo.be
/
nikiroo-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd26ee0
)
fix TempFilesTest
author
Niki Roo
<niki@nikiroo.be>
Sun, 24 Feb 2019 09:52:44 +0000
(10:52 +0100)
committer
Niki Roo
<niki@nikiroo.be>
Sun, 24 Feb 2019 09:52:44 +0000
(10:52 +0100)
src/be/nikiroo/utils/test/TempFilesTest.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/utils/test/TempFilesTest.java
b/src/be/nikiroo/utils/test/TempFilesTest.java
index 905ca4d83266c4727a56e97b02a2495f1a0e3290..460d396edfde962f5de5861c6d61bf80ca774c6d 100644
(file)
--- a/
src/be/nikiroo/utils/test/TempFilesTest.java
+++ b/
src/be/nikiroo/utils/test/TempFilesTest.java
@@
-86,12
+86,22
@@
class TempFilesTest extends TestLauncher {
}
private class RootTempFiles extends TempFiles {
+ private File root = null;
+
public RootTempFiles(String name) throws IOException {
super(name);
}
public File getRoot() {
- return root;
+ if (root != null)
+ return root;
+ return super.root;
+ }
+
+ @Override
+ public synchronized void close() throws IOException {
+ root = super.root;
+ super.close();
}
}
}