MERCURY_OPTIONS= --deep-random-write=25 --deep-std-name --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/runtime/mer_rt.init '; echo MLLIBS += ' '; echo MLOBJS += ' '; echo LDFLAGS += ' '; echo LD_LIBFLAGS += ' '; echo EXTRA_LIBRARIES += ''; echo EXTRA_LIB_DIRS += ''; echo LIBGRADES = 'hlc.gc '; echo INSTALL_PREFIX = '/mnt/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/scripts/mmc --make --options-file - bit_buffer_test.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/tests/hard_coded' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/runtime/mer_rt.init '; echo MLLIBS += ' '; echo MLOBJS += ' '; echo LDFLAGS += ' '; echo LD_LIBFLAGS += ' '; echo EXTRA_LIBRARIES += ''; echo EXTRA_LIB_DIRS += ''; echo LIBGRADES = 'hlc.gc '; echo INSTALL_PREFIX = '/mnt/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/stage2/scripts/mmc --make --options-file - bit_buffer_test Making Mercury/int3s/bit_buffer_test.int3 Making Mercury/ints/bit_buffer_test.int Making Mercury/css/bit_buffer_test.cs Making bit_buffer_test.exe { test -f bit_buffer_test.inp && cat bit_buffer_test.inp; } | ./bit_buffer_test > bit_buffer_test.out 2>&1 || \ { grep . bit_buffer_test.out /dev/null; exit 1; } bit_buffer_test.out:Test reading and writing full bytes. bit_buffer_test.out:Testing with buffer size 8. bit_buffer_test.out:Testing writes: [bits(10101010, 8), bits(11001100, 8), check_buffer_status(ok), bits(1000110, 8), bits(0, 0), bits(10111001, 8), bits(10101010, 8), bits(11001100, 8), check_buffer_status(ok), bits(1000110, 8), bits(0, 0), bits(10111001, 8), bits(10101010, 8), bits(11001100, 8), check_buffer_status(ok), bits(1000110, 8), bits(0, 0), bits(10111001, 8), bits(10101010, 8), bits(11001100, 8), check_buffer_status(ok), bits(1000110, 8), bits(0, 0), bits(10111001, 8), check_buffer_status(eof), pad_to_byte] bit_buffer_test.out:Expected result: 10101010.11001100.01000110.10111001.10101010.11001100.01000110.10111001.10101010.11001100.01000110.10111001.10101010.11001100.01000110.10111001 bit_buffer_test.out:Uncaught Mercury exception: bit_buffer_test.out:io_error_exception_object("error closing file: Cannot access a disposed object.\nObject name: \'Stream has been closed\'.", '<:0 \n at System.IO.BufferedStream.FlushWrite () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 \n at System.IO.BufferedStream.Flush () [0x00012] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 \n at System.IO.BufferedStream.Dispose (System.Boolean disposing) [0x00011] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 \n at System.IO.Stream.Close () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 \n at mercury.io__stream_ops.mercury_close (mercury.io__stream_ops+MR_MercuryFileStruct mf) [0x0003a] in :0 \n at mercury.io.close_binary_output_3_p_0 (mercury.io+Binary_output_stream_0 HeadVar__1_1) [0x00011] in :0 )>>') make[3]: *** [../Mmake.common:121: bit_buffer_test.out] Error 1 make[3]: Target 'bit_buffer_test.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-10-23/tests/hard_coded'