Files
mercury/tests/declarative_debugger/catch.exp2
Zoltan Somogyi cb8c73c592 Fix test failures in trail grades.
tests/declarative_debugger/catch.exp2:
tests/declarative_debugger/catch.exp3:
tests/declarative_debugger/find_origin.exp2:
tests/declarative_debugger/func_call.exp2:
tests/declarative_debugger/gcf.exp2:
tests/declarative_debugger/ho5.exp2:
tests/declarative_debugger/neg_conj.exp2:
tests/declarative_debugger/solns.exp2:
tests/declarative_debugger/throw.exp2:
    Update .exp2 files for line number changes after recent updates
    to source files.

    For the catch test case, swap the .exp2 and .exp3 files first,
    because it looks like the old .exp2, which is the new .exp3,
    is so old that it is probably not an expected output for any
    grade/options combination, and thus should be a candidate for deletion.

tests/declarative_debugger/find_origin.m:
    Improve a comment,

tests/declarative_debugger/catch.m:
    Delete blank last line.
2021-07-30 16:25:26 +10:00

41 lines
1.2 KiB
Plaintext

E1: C1 CALL pred catch.main/2-0 (cc_multi) catch.m:16
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break p
0: + stop interface pred catch.p/2-0 (cc_multi)
mdb> continue
E2: C2 CALL pred catch.p/2-0 (cc_multi) catch.m:24 (catch.m:17)
mdb> finish
E3: C2 EXIT pred catch.p/2-0 (cc_multi) catch.m:24 (catch.m:17)
mdb> dd -d 3 -n 7
p(1, exception(univ_cons("q: bad input")))
Valid? no
Call q(1, _)
Throws "q: bad input"
Expected? no
Found unhandled or incorrect exception:
q(1, _)
"q: bad input"
Is this a bug? yes
E4: C3 EXCP pred catch.q/2-0 (det) e;c3; catch.m:33 (exception.m:NNNN)
mdb> continue
E3: C2 EXIT pred catch.p/2-0 (cc_multi) catch.m:24 (catch.m:17)
mdb> continue
exception(univ_cons("q: bad input"))
E5: C4 CALL pred catch.p/2-0 (cc_multi) catch.m:24 (catch.m:19)
mdb> finish
E6: C4 EXIT pred catch.p/2-0 (cc_multi) catch.m:24 (catch.m:19)
mdb> dd -d 3 -n 7
p(2, succeeded(2))
Valid? no
q(2, 2)
Valid? yes
Found incorrect contour:
try(q(2), succeeded(2))
p(2, succeeded(2))
Is this a bug? yes
E6: C4 EXIT pred catch.p/2-0 (cc_multi) catch.m:24 (catch.m:19)
mdb> continue
succeeded(2)