mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
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.
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
E1: C1 CALL pred throw.main/2-0 (cc_multi) throw.m:16
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break p
|
|
0: + stop interface pred throw.p/1-0 (cc_nondet)
|
|
mdb> break q
|
|
1: + stop interface pred throw.q/1-0 (semidet)
|
|
mdb> continue
|
|
E2: C2 CALL pred throw.p/1-0 (cc_nondet) throw.m:26
|
|
mdb> finish
|
|
E3: C2 EXCP pred throw.p/1-0 (cc_nondet) q!;c2; throw.m:28
|
|
mdb> dd -d 3 -n 7
|
|
Call p(_)
|
|
Throws "Too big"
|
|
Expected? no
|
|
a(3)
|
|
Valid? yes
|
|
Call b(3, _)
|
|
Throws "Too big"
|
|
Expected? yes
|
|
Found unhandled or incorrect exception:
|
|
p(_)
|
|
"Too big"
|
|
Is this a bug? yes
|
|
E3: C2 EXCP pred throw.p/1-0 (cc_nondet) q!;c2; throw.m:28
|
|
mdb> continue
|
|
mdb: warning: reached unknown label
|
|
This may result in some exception events
|
|
being omitted from the trace.
|
|
exception(univ_cons("Too big"))
|
|
E4: C3 CALL pred throw.q/1-0 (semidet) throw.m:54
|
|
mdb> finish
|
|
E5: C3 EXCP pred throw.q/1-0 (semidet) c2;~;q!;c2;~;q!;c2; throw.m:58
|
|
mdb> dd -d 3 -n 7
|
|
Call q(_)
|
|
Throws "Too big"
|
|
Expected? no
|
|
a2(3)
|
|
Valid? yes
|
|
Call b2(3, _)
|
|
Throws "Too big"
|
|
Expected? yes
|
|
Found unhandled or incorrect exception:
|
|
q(_)
|
|
"Too big"
|
|
Is this a bug? yes
|
|
E5: C3 EXCP pred throw.q/1-0 (semidet) c2;~;q!;c2;~;q!;c2; throw.m:58
|
|
mdb> continue
|
|
mdb: warning: reached unknown label
|
|
This may result in some exception events
|
|
being omitted from the trace.
|
|
exception(univ_cons("Too big"))
|