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

41 lines
1.3 KiB
Plaintext

E1: C1 CALL pred io_stream_test.main/2-0 (det) io_stream_test.m:22
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> context none
Contexts will not be printed.
mdb> table_io allow
mdb> table_io start
I/O tabling started.
mdb> break io_stream_test__test
0: + stop interface pred io_stream_test.test/4-0 (det)
mdb> continue
E2: C2 CALL pred io_stream_test.test/4-0 (det)
mdb> print *
Stream (arg 1) stream(0, input, text, file("tabled_read_decl.data"))
mdb> finish -n
E3: C2 EXIT pred io_stream_test.test/4-0 (det)
mdb> print *
Stream (arg 1) stream(0, input, text, file("tabled_read_decl.data"))
N (arg 2) 1123
mdb> print
test(stream(0, input, text, file("tabled_read_decl.data")), 1123, _, _)
mdb> dd -d 3 -n 7 -a
test(stream(0, input, text, file("tabled_read_decl.data")), 1456, _, _)
Valid? print 1-2
stream(0, input, text, file("tabled_read_decl.data"))
1456
dd> p io 1-2
No such IO action.
dd> no
test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1456, _, _)
Valid? yes
Found incorrect contour:
test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1456, _, _)
test(stream(0, input, text, file("tabled_read_decl.data")), 1456, _, _)
Is this a bug? yes
E3: C2 EXIT pred io_stream_test.test/4-0 (det)
mdb> c -n -S
1789
142