Get rid of THREAD_JOIN_IMPLEMENTED by adding thread_join() stub.
[pintos-anon] / grading / lib / Pintos / Grading.pm
index f29dc05f7c9ae494682c0ea49eb0f99ea2a5d22d..6a21d5231edf2851ea6370148c9b84e0331722b9 100644 (file)
@@ -138,10 +138,9 @@ sub extract_sources {
                 LOG => $stem, DIE => "applying patch $stem failed\n");
     }
 
-    # Install default pintos/src/constants.h.
+    # Install default pintos/src/constants.h (which is empty).
     open (CONSTANTS, ">pintos/src/constants.h")
        or die "constants.h: create: $!\n";
-    print CONSTANTS "#define THREAD_JOIN_IMPLEMENTED 1\n";
     close CONSTANTS;
 }
 
@@ -423,9 +422,9 @@ sub grade_test {
     # Read test output.
     my ($outfile) = "output/$test/run.out";
     if (! -e $outfile) {
-       if (-s "output/$test.make.err") {
+       if (-s "output/$test/make.err") {
            # make failed.
-           $details{$test} = snarf ("output/$test.make.err");
+           $details{$test} = snarf ("output/$test/make.err");
            return "make failed.  Error messages at end of file.";
        }
        die "$outfile: missing test output file";