Commit Graph

5 Commits

Author SHA1 Message Date
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
Ralph Becket
a8ffd3680c Change the compiler and tools so that .' and not :' is now used as the
Estimated hours taken: 14
Branches: main

Change the compiler and tools so that `.' and not `:' is now used as the
module separator in all output.

Infix `.' now has associativity yfx and priority 10.

NEWS:
	Report the change.

configure.in:
	Amend the test for an up-to-date Mercury compiler to check whether
	it recognises `.' as a module qualifier.

compiler/code_gen.m:
compiler/error_util.m:
compiler/hlds_out.m:
compiler/prog_out.m:
compiler/prog_util.m:
compiler/rl_exprn.m:
compiler/rl_gen.m:
compiler/source_file_map.m:
compiler/unused_args.m:
library/io.m:
library/rtti_implementation.m:
library/type_desc.m:
runtime/mercury_debug.c:
runtime/mercury_deconstruct.c:
runtime/mercury_stack_trace.c:
	Change `:' to `.' as module separator for output.

compiler/mercury_to_mercury.m:
compiler/prog_io_typeclass.m:
	As above.
	Fixed a bug where `.' was not being recognised as a module separator.

doc/reference_manual.texi:
	Report the change.

library/term_io.m:
	Ensure that infix `.' is written without surrounding spaces.

tests/hard_coded/dot_separator.m:
tests/hard_coded/dot_separator.exp:
tests/hard_coded/Mmakefile:
	Test case added.
2003-01-17 05:57:20 +00:00
Zoltan Somogyi
2d27e59a3c Register debuggable modules quietly, to avoid test failures from
Estimated hours taken: 0.2

tests/debugger/all_solutions.{inp,exp,exp2}:
	Register debuggable modules quietly, to avoid test failures from
	spurious differences in the count of debuggable procedures.
2000-12-21 06:16:38 +00:00
Zoltan Somogyi
7fcfa62c3c Updated for new test of a diagnostic message.
Estimated hours taken: 0.1

tests/debugger/all_solutions.exp:
	Updated for new test of a diagnostic message.
2000-12-20 07:51:21 +00:00
Zoltan Somogyi
b0512b72c6 Fix several bugs in retry.
Estimated hours taken: 8

Fix several bugs in retry.

trace/mercury_trace.c:
	Fix three bugs reported by Fergus in the behavior of the mdb retry
	command.

	Catch the case where the retry command tries to retry a call that
	would be an ancestor of main.

	Catch the case where the retry command tries to retry a call that
	is in shallow traced region of the computation tree.

	Don't abort if the retried call is missing an I/O state argument
	and relevant procedure was compiled without --trace-table-io; just
	ask the user whether they want to proceed with the retry.

	Add some conditionally compiled debugging code.

trace/mercury_trace.c:
trace/mercury_trace_spy.c:
	Fix a bug unrelated to retry that was detected by new additions
	to the test cases: spy points were being printed after being deleted.
	Deletion was releasing some strings (filenames) in some spy points,
	leading to those filename being printed as garbage. We now print the
	spy points before deleting them. This required moving the code
	for marking spy points as deleted from mercury_trace_spy.c to
	mercury_trace.c.

compiler/trace.m:
	Fix a bug that caused the debugger to core dump when given a retry
	command that went across a shallow traced region of the program.
	(This bug was exposed when I fixed the second bug reported by Fergus.)
	A procedure that lives on the det stack that nevertheless pushes
	temporary frames onto the nondet stack should save the original value
	of maxfr on procedure entry even if it is shallow traced and from_full
	is false, since the debugger will need to restore the value of maxfr
	during retry.

tests/debugger/queens.{inp,exp,exp2}:
	Test how mdb handles trying to retry an ancestor of main.

	Test how mdb handles a retry with a missing I/O state argument.

tests/debugger/all_solutions.{m,inp,exp,exp2}:
	New test case. The code is a copy of samples/solutions/all_solutions.m.
	Its input script tests retry into and across a shallow traced region
	(inside std_util:solutions).
2000-12-18 05:16:59 +00:00