Files
mercury/tests/declarative_debugger/throw.exp3
Zoltan Somogyi ad1be2b355 Add tests/declarative_debugger/throw.exp4, ...
record what circumstance it is for, and update line numbers in all the other
expected output files.
2022-01-08 08:52:55 +11:00

54 lines
1.4 KiB
Plaintext

E1: C1 CALL pred throw.main/2-0 (cc_multi) throw.m:21
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:29
mdb> finish
E3: C2 EXCP pred throw.p/1-0 (cc_nondet) q!;c2; throw.m:31
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:31
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:55
mdb> finish
E5: C3 EXCP pred throw.q/1-0 (semidet) c1;~;q!;c2;~;q!;c1; throw.m:59
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) c1;~;q!;c2;~;q!;c1; throw.m:59
mdb> continue
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
exception(univ_cons("Too big"))