Commit Graph

4 Commits

Author SHA1 Message Date
Julien Fischer
1f6d83692a Update programming style in tests/hard_coded.
tests/hard_coded/*.m:
    Update programming style, unless doing so would change
    the meaning of the test, in particular:

    - use '.' as a module qualifier in place of '__'
    - use {write,print}_line where appropriate
    - use if-then-else in place of C -> T ; E
    - use state variables in place of DCGs

tests/hard_coded/dir_test.m:
    Document what the expected outputs correspond to.

    Use a uniform module qualifier in the output.

tests/hard_coded/dir_test.exp*:
    Conform to the above change.
2021-01-07 13:58:12 +11:00
Zoltan Somogyi
4865f11503 Update programming style. 2020-10-04 13:20:42 +11: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
Zoltan Somogyi
2bc37d7396 Fix a very old bug with --checked-nondet-tailcall that caused a call
Estimated hours taken: 1
Branches: main

compiler/jumpopt.m:
	Fix a very old bug with --checked-nondet-tailcall that caused a call
	instruction to not be preceded by a livevals instruction. This violated
	an invariant of the LLDS and caused livemap.m to throw an exception.

tests/hard_coded/checked_nondet_tailcall_noinline.{m,exp}:
	Add this copy of the checked_nondet_tailcall test case.

tests/hard_coded/Mercury.options:
	Compile checked_nondet_tailcall_noinline with --no-inlining, which
	used to expose the bug.

tests/hard_coded/Mmakefile:
	Enable the new test case.
2007-01-15 02:50:58 +00:00