Commit Graph

4 Commits

Author SHA1 Message Date
Julien Fischer
85e84f4f62 Fix the failure of hard_coded/runtime_opt on Windows.
tests/hard_coded/runtime_opt.exp2:
    Alternative expected output for where stdout and stderr are
    interleaved differently.

tests/hard_coded/runtime_opt.m:
    Document what the expected outputs are for.
2023-07-28 20:20:19 +10:00
Zoltan Somogyi
2f7c5fb87f Update the programming style of some tests. 2020-10-03 17:43:38 +10:00
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00
Mark Brown
4a1b9f3bd5 Fix a bug in the handling of unrecognised runtime flags.
Estimated hours taken: 3
Branches: main, release

Fix a bug in the handling of unrecognised runtime flags.

runtime/mercury_wrapper.c:
	Add the required sentinel at the end of MR_long_opts.

	Allow "det-stack-*" and "nondet-stack-*" as synonyms for
	"detstack-*" and "nondetstack-*" respectively.

tests/hard_coded/Mmakefile:
tests/hard_coded/runtime_opt.exp:
tests/hard_coded/runtime_opt.inp:
tests/hard_coded/runtime_opt.m:
	Test case for both recognised and unrecognised options.  The options
	to attempt are listed one per line in runtime_opt.inp.
2006-08-28 10:13:23 +00:00