|
@@ -80,14 +80,18 @@ class TestCommandBase extends utest.Test {
|
|
if (exitCode != random)
|
|
if (exitCode != random)
|
|
trace(name);
|
|
trace(name);
|
|
Assert.equals(random, exitCode);
|
|
Assert.equals(random, exitCode);
|
|
-
|
|
|
|
- // Try to avoid unlink(): Resource temporarily unavailable error
|
|
|
|
- #if php
|
|
|
|
- php.Global.gc_collect_cycles();
|
|
|
|
- #end
|
|
|
|
- FileSystem.deleteFile(path);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // Try to avoid unlink(): Resource temporarily unavailable error
|
|
|
|
+ Sys.sleep(0.1);
|
|
|
|
+ #if php
|
|
|
|
+ php.Global.gc_collect_cycles();
|
|
|
|
+ #end
|
|
|
|
+ for (file in FileSystem.readDirectory("temp")) {
|
|
|
|
+ if (file == ".gitignore") continue;
|
|
|
|
+ FileSystem.deleteFile(Path.join(["temp", file]));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
function testExitCode() {
|
|
function testExitCode() {
|