MERCURY_OPTIONS= --deep-random-write=25 --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/tests/exceptions' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs --no-warn-simple-code --no-warn-det-decls-too-lax '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/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-07-21/stage2/scripts/mmc --make --options-file - test_try_all.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/tests/exceptions' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/tests/exceptions' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs --no-warn-simple-code --no-warn-det-decls-too-lax '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/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-07-21/stage2/scripts/mmc --make --options-file - test_try_all Making Mercury/int3s/test_try_all.int3 Making Mercury/ints/test_try_all.int Making Mercury/css/test_try_all.cs Making test_try_all.exe { [ -f test_try_all.inp ] && cat test_try_all.inp; } | ./test_try_all > test_try_all.out 2>&1 || \ { grep . test_try_all.out /dev/null; exit 1; } test_try_all.out:det_throw: test_try_all.out: yes(univ_cons("det_throw")) test_try_all.out: [] test_try_all.out:det_succeed: test_try_all.out: no test_try_all.out: ["det_succeed"] test_try_all.out:semidet_throw: test_try_all.out: yes(univ_cons("semidet_throw")) test_try_all.out: [] test_try_all.out:semidet_succeed: test_try_all.out: no test_try_all.out: ["semidet_succeed"] test_try_all.out:semidet_fail: test_try_all.out: no test_try_all.out: [] test_try_all.out:Unhandled Exception: test_try_all.out:System.InvalidCastException: Specified cast is not valid. test_try_all.out: at mercury.exception.IntroducedFrom__pred__try_all__464__1_4_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_38, System.Object[] HeadVar__2_23, System.Object[] HeadVar__3_24, System.Object cont, System.Object cont_env_ptr) [0x0007c] in :0 test_try_all.out: at mercury.exception.try_all_3_p_2_8 (System.Object closure_arg, System.Object cont, System.Object cont_env_ptr) [0x0001c] in :0 test_try_all.out: at mercury.solutions.builtin_aggregate_4_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_20, mercury.runtime.TypeInfo_Struct TypeInfo_for_U_21, System.Object[] GeneratorPred_5, System.Object[] CollectorPred_6, System.Object STATE_VARIABLE_Acc_0_16) [0x00058] in :0 test_try_all.out: at mercury.exception.try_all_3_p_2 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_38, System.Object[] Goal_1, mercury.list+List_1& out_param_2) [0x00183] in :0 test_try_all.out: at mercury.test_try_all.main_2_p_0 () [0x00161] in :0 test_try_all.out: at mercury.test_try_all.Main (System.String[] args) [0x00005] in :0 test_try_all.out:[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Specified cast is not valid. test_try_all.out: at mercury.exception.IntroducedFrom__pred__try_all__464__1_4_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_38, System.Object[] HeadVar__2_23, System.Object[] HeadVar__3_24, System.Object cont, System.Object cont_env_ptr) [0x0007c] in :0 test_try_all.out: at mercury.exception.try_all_3_p_2_8 (System.Object closure_arg, System.Object cont, System.Object cont_env_ptr) [0x0001c] in :0 test_try_all.out: at mercury.solutions.builtin_aggregate_4_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_20, mercury.runtime.TypeInfo_Struct TypeInfo_for_U_21, System.Object[] GeneratorPred_5, System.Object[] CollectorPred_6, System.Object STATE_VARIABLE_Acc_0_16) [0x00058] in :0 test_try_all.out: at mercury.exception.try_all_3_p_2 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_38, System.Object[] Goal_1, mercury.list+List_1& out_param_2) [0x00183] in :0 test_try_all.out: at mercury.test_try_all.main_2_p_0 () [0x00161] in :0 test_try_all.out: at mercury.test_try_all.Main (System.String[] args) [0x00005] in :0 make[3]: *** [../Mmake.common:121: test_try_all.out] Error 1 make[3]: Target 'test_try_all.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-21/tests/exceptions'