Files
mercury/tests/debugger/io_tab_goto.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

56 lines
1.6 KiB
Plaintext

E1: C1 CALL pred io_tab_goto.main/2-0 (det) io_tab_goto.m:19
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> context none
Contexts will not be printed.
mdb> table_io allow
mdb> table_io
I/O tabling has not yet started.
mdb> break io_tab_goto__test
0: + stop interface pred io_tab_goto.test/5-0 (det)
mdb> table_io start
I/O tabling started.
mdb> continue
should see this printf
E2: C2 CALL pred io_tab_goto.test/5-0 (det)
mdb> finish -n
E3: C2 EXIT pred io_tab_goto.test/5-0 (det)
mdb> print *
Stream (arg 1) c_pointer(0xXXXX)
SoFar (arg 2) 0
N (arg 3) 123
mdb> retry -o -a
E2: C2 CALL pred io_tab_goto.test/5-0 (det)
mdb> print *
Stream (arg 1) c_pointer(0xXXXX)
SoFar (arg 2) 0
mdb> finish -n
E3: C2 EXIT pred io_tab_goto.test/5-0 (det)
mdb> print *
Stream (arg 1) c_pointer(0xXXXX)
SoFar (arg 2) 0
N (arg 3) 123
mdb> table_io end
I/O tabling stopped.
mdb> continue
123
456
E4: C3 CALL pred io_tab_goto.test/5-0 (det)
mdb> finish -n
E5: C3 EXIT pred io_tab_goto.test/5-0 (det)
mdb> print *
Stream (arg 1) c_pointer(0xXXXX)
SoFar (arg 2) 0
N (arg 3) 789
mdb> retry -f
E4: C3 CALL pred io_tab_goto.test/5-0 (det)
mdb> finish -n
E6: C3 EXIT pred io_tab_goto.test/5-0 (det)
mdb> print *
Stream (arg 1) c_pointer(0xXXXX)
SoFar (arg 2) 0
N (arg 3) 42
mdb> continue -S
42