Free file in file_close().
[pintos-anon] / grading / threads / run-tests
index 73ab9a0697087724decac48e67dda3cb733ff70f..0852f6f99536d11953debf5d61b4141c6e8ead38 100755 (executable)
@@ -94,8 +94,9 @@ sub run_test {
     xsystem ("cp pintos/src/threads/build/os.dsk output/$test");
 
     # Run.
-    my ($timeout) = $test !~ /^mlfqs/ ? 10 : 600;
-    return run_pintos ("cd pintos/src/threads/build && pintos -v run -q",
+    my ($timeout) = $test !~ /^mlfqs/ ? 15 : 600;
+    return run_pintos (["-v", "run", "-q"],
+                      CHDIR => "pintos/src/threads/build",
                       LOG => "$test/run",
                       TIMEOUT => $timeout);
 }