[m-dev.] diff: fix arg_order_rearrangment test case failure

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 14 00:08:25 AEDT 2000


On 13-Feb-2000, Peter Ross <petdr at cs.mu.OZ.AU> wrote:
> 
> tests/warnings/Mmakefile:
>     Make the .res files depend on the .c files instead of the .err
>     files.  This fixes a bug which was causing spurious failures of
>     arg_order_rearrangement test case.  The bug was due to the .c file
>     not always finishing being made (and as a side-effect generating the
>     .err file) before diff was run.

Hmm... one of the purposes of the test cases in this directory
is to test the `--error-check-only' option and the `.err' mmake
targets.  Your change means that those features won't get tested
anymore.

I think it would be better to keep most of the .res files depending
on the .err file, and do things differently only for those cases
(currently just arg_order_rearrangement) that need the .err file that
gets created when compiling to C rather than the one that is created
with the --error-check-only option.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list