projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When run.out is missing in &grade_test, just return an error that
[pintos-anon]
/
grading
/
lib
/
Pintos
/
Grading.pm
diff --git
a/grading/lib/Pintos/Grading.pm
b/grading/lib/Pintos/Grading.pm
index f29dc05f7c9ae494682c0ea49eb0f99ea2a5d22d..240b16ebb5ff0fe73697e885d372e146e49a4a12 100644
(file)
--- a/
grading/lib/Pintos/Grading.pm
+++ b/
grading/lib/Pintos/Grading.pm
@@
-138,10
+138,9
@@
sub extract_sources {
LOG => $stem, DIE => "applying patch $stem failed\n");
}
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";
open (CONSTANTS, ">pintos/src/constants.h")
or die "constants.h: create: $!\n";
- print CONSTANTS "#define THREAD_JOIN_IMPLEMENTED 1\n";
close CONSTANTS;
}
close CONSTANTS;
}
@@
-423,12
+422,12
@@
sub grade_test {
# Read test output.
my ($outfile) = "output/$test/run.out";
if (! -e $outfile) {
# 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.
# 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.";
}
return "make failed. Error messages at end of file.";
}
-
die "$outfile: missing test output file
";
+
return "preparation for test failed
";
}
my (@output) = snarf ($outfile);
}
my (@output) = snarf ($outfile);