mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Merge pull request #107 from dscho/temp-file
Delete temporary test file afterwards
This commit is contained in:
commit
c3e3447c62
@ -27,13 +27,17 @@ public class Files {
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File file = File.createTempFile("avian.", null);
|
File file = File.createTempFile("avian.", null);
|
||||||
file.setExecutable(executable);
|
try {
|
||||||
if (executable) {
|
file.setExecutable(executable);
|
||||||
expect(file.canExecute());
|
if (executable) {
|
||||||
} else {
|
expect(file.canExecute());
|
||||||
// Commented out because this will fail on Windows - both on Avian and on OpenJDK
|
} else {
|
||||||
// The implementation for Windows considers canExecute() to be the same as canRead()
|
// Commented out because this will fail on Windows - both on Avian and on OpenJDK
|
||||||
// expect(!file.canExecute());
|
// The implementation for Windows considers canExecute() to be the same as canRead()
|
||||||
|
// expect(!file.canExecute());
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
expect(file.delete());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user