[m-rev.] diff: fix warning test failure
Simon Taylor
stayl at cs.mu.OZ.AU
Sat Nov 2 03:11:05 AEDT 2002
Estimated hours taken: 0.25
Branches: main
tests/warnings/Mmakefile:
Fix a bashism in my previous change (s/>& file/> file 2>&1/).
Don't redirect output to `up_to_date.err' -- `mmc --make'
will also attempt to write to that file.
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/warnings/Mmakefile,v
retrieving revision 1.25
diff -u -u -r1.25 Mmakefile
--- Mmakefile 2002/10/30 13:32:01 1.25
+++ Mmakefile 2002/11/01 16:07:43
@@ -44,9 +44,10 @@
# Check that `mmc --make up_to_date.m' generates a warning.
up_to_date.runtest:
- $(MCM) up_to_date.m >& up_to_date.err
- diff $(DIFF_OPTS) up_to_date.exp up_to_date.err > up_to_date.res_make \
- || { cat up_to_date.err; cat up_to_date.res_make; exit 1; }
+ $(MCM) up_to_date.m > up_to_date.err_make 2>&1
+ diff $(DIFF_OPTS) up_to_date.exp up_to_date.err_make \
+ > up_to_date.res_make || \
+ { cat up_to_date.err_make; cat up_to_date.res_make; exit 1; }
#-----------------------------------------------------------------------------#
@@ -82,6 +83,6 @@
clean_local: clean_err clean_res
clean_err:
- rm -f *.err up_to_date.res_make
+ rm -f *.err up_to_date.err_make
#-----------------------------------------------------------------------------#
--------------------------------------------------------------------------
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