@@ -1374,4 +1374,9 @@ extern class Global {
@see http://php.net/manual/en/function.is-uploaded-file.php
**/
static function is_uploaded_file( filename:String ) : Bool;
+
+ /**
+ @see http://php.net/manual/en/function.gc-collect-cycles.php
+ **/
+ static function gc_collect_cycles() : Int;
}
@@ -80,6 +80,11 @@ class TestCommandBase extends utest.Test {
if (exitCode != random)
trace(name);
Assert.equals(random, exitCode);
+ // Try to avoid unlink(): Resource temporarily unavailable error
+ #if php
+ php.Global.gc_collect_cycles();
+ #end
FileSystem.deleteFile(path);