mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
Merge pull request #107 from dscho/temp-file
Delete temporary test file afterwards
This commit is contained in:
commit
c3e3447c62
@ -27,6 +27,7 @@ public class Files {
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File file = File.createTempFile("avian.", null);
|
File file = File.createTempFile("avian.", null);
|
||||||
|
try {
|
||||||
file.setExecutable(executable);
|
file.setExecutable(executable);
|
||||||
if (executable) {
|
if (executable) {
|
||||||
expect(file.canExecute());
|
expect(file.canExecute());
|
||||||
@ -35,6 +36,9 @@ public class Files {
|
|||||||
// The implementation for Windows considers canExecute() to be the same as canRead()
|
// The implementation for Windows considers canExecute() to be the same as canRead()
|
||||||
// expect(!file.canExecute());
|
// expect(!file.canExecute());
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
expect(file.delete());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
Loading…
Reference in New Issue
Block a user