[m-rev.] diff: fix hlc grade recompilation test failures
Simon Taylor
stayl at cs.mu.OZ.AU
Fri Jun 29 18:02:54 AEST 2001
Estimated hours taken: 0.2
tests/recompilation/test_functions:
In `.hl*' grades, the compiler sometimes puts an extra line in
the `.err' file ("foo.h has CHANGED"). Filter it out before
comparing the `.err' file with the expected output.
Index: test_functions
===================================================================
RCS file: /home/mercury1/repository/tests/recompilation/test_functions,v
retrieving revision 1.1
diff -u -u -r1.1 test_functions
--- test_functions 2001/06/27 05:05:17 1.1
+++ test_functions 2001/06/29 07:54:19
@@ -172,6 +172,11 @@
module=$1
error_file_version=$2
+ # In `.hl*' grades, the compiler sometimes puts extra lines in
+ # the `.err' file (foo.h has CHANGED). Filter them out here.
+ grep -v "has CHANGED" $module.err > $module.err2
+ mv $module.err2 $module.err
+
compare_files $module.err_exp.$error_file_version $module.err
}
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list