MERCURY_OPTIONS= --deep-random-write=25 --deep-std-name --mdb-disable-progress gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/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 += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/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 = '/home/mercury/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/stage2/scripts/mmc --make --options-file - write_binary.depend gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/tests/hard_coded' gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/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 += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/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 = '/home/mercury/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/stage2/scripts/mmc --make --options-file - write_binary Making Mercury/int3s/write_binary.int3 Making Mercury/ints/write_binary.int Making Mercury/css/write_binary.cs Making write_binary.exe { test -f write_binary.inp && cat write_binary.inp; } | ./write_binary > write_binary.out 2>&1 || \ { grep . write_binary.out /dev/null; exit 1; } Comparing write_binary.out with write_binary.exp*, results in write_binary.res ** write_binary.out did not match the expected output ** (closest match was write_binary.res1) --- write_binary.exp 2025-05-12 23:02:36.000000000 +1000 +++ write_binary.out 2025-10-01 08:07:30.756101232 +1000 @@ -1,186 +1,241 @@ TESTING TERMS WITH OPERATORS test input -test passed +test failed with this error: +orig var("X") + int(3) * var("X^2") ; (type), readback eof test input <{ type }> -test passed +test failed with this error: +orig { type }, readback eof test input <{ '?-' }> -test passed +test failed with this error: +orig { '?-' }, readback eof test input <'?-'> -test passed +test failed with this error: +orig '?-', readback eof test input <{ blah }> -test passed +test failed with this error: +orig { blah }, readback eof test input -test passed +test failed with this error: +orig blah ; (type), (type) * blah ; (type), readback eof test input <((blah ; blah), blah) * blah ; blah> -test passed +test failed with this error: +orig ((blah ; blah), blah) * blah ; blah, readback eof test input <(type) * blah ; (type)> -test passed +test failed with this error: +orig (type) * blah ; (type), readback eof TESTING DISCRIMINATED UNIONS test input -test passed +test failed with this error: +orig one, readback eof test input -test passed +test failed with this error: +orig two, readback eof test input -test passed +test failed with this error: +orig three, readback eof test input -test passed +test failed with this error: +orig apple([9, 5, 1]), readback eof test input -test passed +test failed with this error: +orig banana([three, one, two]), readback eof test input -test passed +test failed with this error: +orig zop(3.3, 2.03), readback eof test input -test passed +test failed with this error: +orig zip(3, 2), readback eof test input -test passed +test failed with this error: +orig zap(3, -2.111), readback eof test input -test passed +test failed with this error: +orig wombat, readback eof test input -test passed +test failed with this error: +orig foo, readback eof TESTING POLYMORPHISM test input -test passed +test failed with this error: +orig poly_one([2399.3]), readback eof test input -test passed +test failed with this error: +orig poly_two(3), readback eof test input -test passed +test failed with this error: +orig poly_three(3.33, 4, poly_one(9.11)), readback eof TESTING BUILTINS test input <> -test passed +test failed with this error: +orig "", readback eof test input -test passed +test failed with this error: +orig "Hello, world\n", readback eof test input -test passed +test failed with this error: +orig "Foo%sFoo", readback eof test input <"> -test passed +test failed with this error: +orig "\"", readback eof test input -test passed +test failed with this error: +orig 'a', readback eof test input <&> -test passed +test failed with this error: +orig '&', readback eof test input <.> -test passed +test failed with this error: +orig '.', readback eof test input <%> -test passed +test failed with this error: +orig '%', readback eof test input < > -test passed +test failed with this error: +orig ' ', readback eof test input < > -test passed +test failed with this error: +orig '\t', readback eof test input < > -test passed +test failed with this error: +orig '\n', readback eof test input <\> -test passed +test failed with this error: +orig '\\', readback eof test input <*> -test passed +test failed with this error: +orig '*', readback eof test input -test passed +test failed with this error: +orig '/', readback eof test input <3.14159> -test passed +test failed with this error: +orig 3.14159, readback eof -test input <1.128324983e-21> -test passed +test input <1.128324983E-21> +test failed with this error: +orig 1.128324983E-21, readback eof -test input <2.23954899e+23> -test passed +test input <2.23954899E+23> +test failed with this error: +orig 2.23954899E+23, readback eof test input <-65> -test passed +test failed with this error: +orig -65, readback eof test input <4> -test passed +test failed with this error: +orig 4, readback eof test input <651> -test passed +test failed with this error: +orig 651u, readback eof test input <-128> -test passed +test failed with this error: +orig -128i8, readback eof test input <127> -test passed +test failed with this error: +orig 127i8, readback eof test input <255> -test passed +test failed with this error: +orig 255u8, readback eof test input <-32768> -test passed +test failed with this error: +orig -32768i16, readback eof test input <32767> -test passed +test failed with this error: +orig 32767i16, readback eof test input <65535> -test passed +test failed with this error: +orig 65535u16, readback eof test input <-2147483648> -test passed +test failed with this error: +orig -2147483648i32, readback eof test input <2147483647> -test passed +test failed with this error: +orig 2147483647i32, readback eof test input <4294967295> -test passed +test failed with this error: +orig 4294967295u32, readback eof the next test is expected to fail: test input <'<>'> test failed with this error: -orig '<>', readback error - +orig '<>', readback eof TESTING OTHER TYPES test input -test passed +test failed with this error: +orig var(1), readback eof test input -test passed +test failed with this error: +orig var_supply(0), readback eof test input -test passed +test failed with this error: +orig var_supply(1), readback eof test input -test passed +test failed with this error: +orig empty, readback eof test input -test passed +test failed with this error: +orig qwerty(4), readback eof test input -test passed +test failed with this error: +orig array([1, 2, 3, 4]), readback eof gmake[3]: *** [../Mmake.common:132: write_binary.res] Error 1 gmake[3]: Target 'write_binary.runtest' not remade because of errors. gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-09-30/tests/hard_coded'