Files
mercury/tests/declarative_debugger/exceptions.exp
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

95 lines
2.3 KiB
Plaintext

E1: C1 CALL pred exceptions.main/2-0 (cc_multi) exceptions.m:21
mdb> mdb> Contexts will not be printed.
mdb> echo on
Command echo enabled.
mdb> break q
0: + stop interface pred exceptions.q/2-0 (cc_multi)
mdb> c
E2: C2 CALL pred exceptions.q/2-0 (cc_multi)
mdb> f
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
E3: C2 EXIT pred exceptions.q/2-0 (cc_multi)
mdb> delete *
0: E stop interface pred exceptions.q/2-0 (cc_multi)
mdb> dd -d 3 -n 7 -d1000
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
q(yes(univ_cons("Error")), [1, 2, 3])
Valid? n
p(1)
Valid? y
p(2)
Valid? y
p(3)
Valid? y
Call p(_)
Throws "Error"
Expected? y
Found incorrect contour:
q(yes(univ_cons("Error")), [1, 2, 3])
Is this a bug? y
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
E3: C2 EXIT pred exceptions.q/2-0 (cc_multi)
mdb> break r
0: + stop interface pred exceptions.r/1-0 (semidet)
mdb> c
E4: C3 CALL pred exceptions.r/1-0 (semidet)
mdb> f
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
E5: C3 FAIL pred exceptions.r/1-0 (semidet)
mdb> delete *
0: E stop interface pred exceptions.r/1-0 (semidet)
mdb> dd -d 3 -n 7 -d1000
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
Call r(_)
Unsatisfiable? n
t({yes(univ_cons("Error")), [4, 5, 6]})
Valid? n
s(4)
Valid? y
s(5)
Valid? y
s(6)
Valid? y
Call s(_)
Throws "Error"
Expected? y
Found incorrect contour:
t({yes(univ_cons("Error")), [4, 5, 6]})
Is this a bug? y
mdb: warning: reached unknown label
This may result in some exception events
being omitted from the trace.
E6: C4 EXIT pred exceptions.t/1-0 (cc_multi)
mdb> break v
0: + stop interface pred exceptions.v/1-0 (nondet)
mdb> c
no
E7: C5 CALL pred exceptions.v/1-0 (nondet)
mdb> f
E8: C5 EXCP pred exceptions.v/1-0 (nondet) c2;
mdb> dd -d 3 -n 7 -d1000
Call v(_)
Throws "Error"
Expected? n
y(1)
Valid? y
Call u(_)
Throws "Error"
Expected? y
Found unhandled or incorrect exception:
v(_)
"Error"
Is this a bug? y
E8: C5 EXCP pred exceptions.v/1-0 (nondet) c2;
mdb> quit -y