Files
mercury/tests/debugger/declarative/throw.exp2
Ian MacLarty fc83d1137a Fix the expected output for this test case in debug grades.
Estimated hours taken: 0.4
Branches: main

tests/debugger/declarative/throw.exp2:
	Fix the expected output for this test case in debug grades.
	(The context should appear in debug grades.)
2005-10-23 08:39:03 +00:00

48 lines
1.3 KiB
Plaintext

E1: C1 CALL pred throw.main/2-0 (cc_multi) throw.m:10
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:20 (exception.m:NNNN)
mdb> finish
E3: C2 EXCP pred throw.p/1-0 (cc_nondet) q!;c2; throw.m:22 (exception.m:NNNN)
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:22 (exception.m:NNNN)
mdb> continue
exception(univ_cons("Too big"))
E4: C3 CALL pred throw.q/1-0 (semidet) throw.m:48 (exception.m:NNNN)
mdb> finish
E5: C3 EXCP pred throw.q/1-0 (semidet) c2;~;q!;c2;~;q!;c2; throw.m:52 (exception.m:NNNN)
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:52 (exception.m:NNNN)
mdb> continue
exception(univ_cons("Too big"))