MERCURY_OPTIONS= --deep-random-write=25 --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/tests/declarative_debugger' /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/mmc --generate-dependencies --grade asm_fast.gc.decldebug.stseg --mercury-linkage static --flags ../TESTS_FLAGS --flags ../WS_FLAGS --trace decl io_stream_test > io_stream_test.dep_err 2>&1 make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/tests/declarative_debugger' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/tests/declarative_debugger' /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/mmc --make-interface --grade asm_fast.gc.decldebug.stseg --mercury-linkage static --flags ../TESTS_FLAGS --flags ../WS_FLAGS --trace decl io_stream_test /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/mmc --compile-to-c --grade asm_fast.gc.decldebug.stseg --mercury-linkage static --flags ../TESTS_FLAGS --flags ../WS_FLAGS --trace decl io_stream_test > io_stream_test.err 2>&1 /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/mgnuc --grade asm_fast.gc.decldebug.stseg -- -c io_stream_test.c -o io_stream_test.o /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/mgnuc --grade asm_fast.gc.decldebug.stseg -- -c io_stream_test_init.c -o io_stream_test_init.o /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/ml --grade asm_fast.gc.decldebug.stseg --no-mercury-stdlib-dir --trace --trace-init-file /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/browser/mer_browser.init --trace-init-file /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/mdbcomp/mer_mdbcomp.init --ssdb-init-file /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/ssdb/mer_ssdb.init -- -o io_stream_test io_stream_test_init.o \ io_stream_test.o \ /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/trace/libmer_trace.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/trace/libmer_eventspec.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/ssdb/libmer_ssdb.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/browser/libmer_browser.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/mdbcomp/libmer_mdbcomp.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/library/libmer_std.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/runtime/libmer_rt.a /mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/boehm_gc/libgc.a MERCURY_OPTIONS="$MERCURY_OPTIONS -de" HOME=/nonexistent MERCURY_SUPPRESS_MDB_BANNER=yes MERCURY_DEBUGGER_INIT=/mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/stage2/scripts/test_mdbrc mdb ./io_stream_test < io_stream_test.inp | \ sed 's/0x[-0-9A-Fa-f]*/0xXXXX/g' | \ sed 's/(nil)/0xXXXX/g'\ > io_stream_test.out 2>&1 \ || { grep . io_stream_test.out /dev/null; exit 1; } Comparing io_stream_test.out with io_stream_test.exp*, results in io_stream_test.res ** io_stream_test.out did not match the expected output ** (closest match was io_stream_test.res1) --- io_stream_test.exp 2020-10-11 14:28:48.000000000 +1100 +++ io_stream_test.out 2022-04-04 22:36:45.112644904 +1000 @@ -21,20 +21,41 @@ 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, _, _) +test(stream(0, input, text, file("tabled_read_decl.data")), 1123, _, _) +4 tabled IO actions: +read_char_code_2(<>, result_code_ok, <>, '1') +read_char_code_2(<>, result_code_ok, <>, '2') +read_char_code_2(<>, result_code_ok, <>, '3') +read_char_code_2(<>, result_code_ok, <>, '\n') Valid? print 1-2 stream(0, input, text, file("tabled_read_decl.data")) -1456 +1123 dd> p io 1-2 -No such IO action. +read_char_code_2(<>, result_code_ok, <>, '1') +read_char_code_2(<>, result_code_ok, <>, '2') dd> no -test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1456, _, _) +test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1123, _, _) +4 tabled IO actions: +read_char_code_2(<>, result_code_ok, <>, '1') +read_char_code_2(<>, result_code_ok, <>, '2') +read_char_code_2(<>, result_code_ok, <>, '3') +read_char_code_2(<>, result_code_ok, <>, '\n') 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, _, _) +test_2(stream(0, input, text, file("tabled_read_decl.data")), 1, 1123, _, _) +4 tabled IO actions: +read_char_code_2(<>, result_code_ok, <>, '1') +read_char_code_2(<>, result_code_ok, <>, '2') +read_char_code_2(<>, result_code_ok, <>, '3') +read_char_code_2(<>, result_code_ok, <>, '\n') +test(stream(0, input, text, file("tabled_read_decl.data")), 1123, _, _) +4 tabled IO actions: +read_char_code_2(<>, result_code_ok, <>, '1') +read_char_code_2(<>, result_code_ok, <>, '2') +read_char_code_2(<>, result_code_ok, <>, '3') +read_char_code_2(<>, result_code_ok, <>, '\n') Is this a bug? yes E3: C2 EXIT pred io_stream_test.test/4-0 (det) mdb> c -n -S -1789 -142 +1123 +1456 make[3]: *** [../Mmake.common:138: io_stream_test.res] Error 1 make[3]: Target 'io_stream_test.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2022-04-03/tests/declarative_debugger'