Commit Graph

3 Commits

Author SHA1 Message Date
Peter Wang
544f3bf095 Use musl getopt implementation.
LICENSE:
    Mention files derived from musl library.

runtime/process_getopt:
    Process files from ../getopt/*.[ch] to produce
    mercury_getopt.h, mercury_getopt.c, mercury_getopt_long.c.

runtime/mercury_getopt.h:
runtime/mercury_getopt.c:
runtime/mercury_getopt_long.c:
    Add files generated by process_getopt.

runtime/Mmakefile:
    Update list of source files.

util/Mmakefile:
    Use musl getopt if the system C library does not have getopt().

tests/debugger/browser_test.exp:
tests/debugger/browser_test.exp2:
tests/debugger/browser_test.exp3:
tests/hard_coded/runtime_opt.exp:
    Update expected error messages to match new getopt() output.

changed exp output
2019-06-10 13:30:49 +10:00
Peter Wang
5574b7aa36 Update this test case. It would report an error message when the
Estimated hours taken: 0.1
Branches: main

tests/hard_coded/Mmakefile:
tests/hard_coded/runtime_opt.exp:
tests/hard_coded/runtime_opt.inp:
	Update this test case.  It would report an error message when the
	chosen --detstack-size was less than the default --small-detstack-size.
2006-10-04 23:59:46 +00: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