MERCURY_OPTIONS= --deep-random-write=25 --deep-std-name --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/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-11-10/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/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-11-10/stage2/scripts/mmc --make --options-file - mutable_excp.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/tests/hard_coded' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/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-11-10/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/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-11-10/stage2/scripts/mmc --make --options-file - mutable_excp Making Mercury/int3s/mutable_excp.int3 Making Mercury/ints/mutable_excp.int Making Mercury/css/mutable_excp.cs Making mutable_excp.exe Mercury/css/mutable_excp.m(17,12): warning CS0414: The private field `mercury.mutable_excp.mutable_excp__mutable_variable_foo' is assigned but its value is never used Mercury/css/mutable_excp.m(18,12): warning CS0414: The private field `mercury.mutable_excp.mutable_excp__mutable_variable_bar' is assigned but its value is never used Mercury/css/mutable_excp.m(19,12): warning CS0414: The private field `mercury.mutable_excp.mutable_excp__mutable_variable_baz' is assigned but its value is never used Compilation succeeded - 3 warning(s) if MERCURY_SUPPRESS_STACK_TRACE=yes ./mutable_excp > mutable_excp.out.tmp 2>&1; then \ grep . mutable_excp.out.tmp; \ exit 1; \ else \ mv mutable_excp.out.tmp mutable_excp.out; \ fi Comparing mutable_excp.out with mutable_excp.exp*, results in mutable_excp.res ** mutable_excp.out did not match the expected output ** (closest match was mutable_excp.res1) --- mutable_excp.exp 2020-10-11 14:28:49.000000000 +1100 +++ mutable_excp.out 2024-11-11 18:50:18.641483310 +1100 @@ -1,3 +1,17 @@ init_foo: X = 40 -Uncaught Mercury exception: -magic_number_exception + +Unhandled Exception: +System.TypeInitializationException: The type initializer for 'mercury.mutable_excp' threw an exception. ---> mercury.runtime.Exception: Exception of type 'mercury.runtime.Exception' was thrown. + at mercury.exception.throw_1_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_4, System.Object Exception_2) [0x0001d] in <667eb531f293461085df6937c49ebbf4>:0 + at mercury.exception.throw_1_f_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_5, mercury.runtime.TypeInfo_Struct TypeInfo_6_6, System.Object Exception_3) [0x00002] in <667eb531f293461085df6937c49ebbf4>:0 + at mercury.mutable_excp.initialise_mutable_bar_0_p_0 () [0x0002e] in :0 + at mercury.mutable_excp.mutable_excp__user_init_pred_8_0 () [0x00000] in :0 + at mercury.mutable_excp..cctor () [0x000ca] in :0 + --- End of inner exception stack trace --- +[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'mercury.mutable_excp' threw an exception. ---> mercury.runtime.Exception: Exception of type 'mercury.runtime.Exception' was thrown. + at mercury.exception.throw_1_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_4, System.Object Exception_2) [0x0001d] in <667eb531f293461085df6937c49ebbf4>:0 + at mercury.exception.throw_1_f_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_5, mercury.runtime.TypeInfo_Struct TypeInfo_6_6, System.Object Exception_3) [0x00002] in <667eb531f293461085df6937c49ebbf4>:0 + at mercury.mutable_excp.initialise_mutable_bar_0_p_0 () [0x0002e] in :0 + at mercury.mutable_excp.mutable_excp__user_init_pred_8_0 () [0x00000] in :0 + at mercury.mutable_excp..cctor () [0x000ca] in :0 + --- End of inner exception stack trace --- make[3]: *** [../Mmake.common:138: mutable_excp.res] Error 1 make[3]: Target 'mutable_excp.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-11-10/tests/hard_coded'