MERCURY_OPTIONS= make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/tests/invalid' ../Mmake.common:335: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1305: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.5ztceU:1765: warning: undefined variable 'TRAILED_PROGS' { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs --infer-all --no-intermodule-optimization '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/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-09-02/stage2/scripts/mmc --make --options-file - bad_exported_mode.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/tests/invalid' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/tests/invalid' ../Mmake.common:335: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1305: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.r49Woi:1765: warning: undefined variable 'TRAILED_PROGS' { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs --infer-all --no-intermodule-optimization '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/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-09-02/stage2/scripts/mmc --make --options-file - bad_exported_mode.err Making Mercury/int3s/bad_exported_mode.int3 Making Mercury/int3s/bad_exported_mode_helper_1.int3 Making Mercury/ints/bad_exported_mode.int Making Mercury/ints/bad_exported_mode_helper_1.int ** Nothing to be done for `bad_exported_mode.err'. if { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs --infer-all --no-intermodule-optimization '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/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-09-02/stage2/scripts/mmc --make --options-file - -r bad_exported_mode.err > /dev/null 2>&1 ; \ then false; \ else true; \ fi Comparing bad_exported_mode.err with bad_exported_mode.err_exp*, results in bad_exported_mode.err_res ** bad_exported_mode.err did not match the expected error output ** (closest match was bad_exported_mode.err_res2) --- bad_exported_mode.err_exp2 2023-10-19 21:33:45.000000000 +1100 +++ bad_exported_mode.err 2024-09-03 14:50:14.364308831 +1000 @@ -1,5 +1,5 @@ Mercury/ints/bad_exported_mode_helper_1.int:003: Error: `:- mode' declaration -Mercury/ints/bad_exported_mode_helper_1.int:003: for predicate `p'/2 -Mercury/ints/bad_exported_mode_helper_1.int:003: without corresponding -Mercury/ints/bad_exported_mode_helper_1.int:003: `:- pred' declaration. +Mercury/ints/bad_exported_mode_helper_1.int:003: for predicate `p'/2 without +Mercury/ints/bad_exported_mode_helper_1.int:003: a corresponding `:- pred' +Mercury/ints/bad_exported_mode_helper_1.int:003: declaration. Mercury/ints/bad_exported_mode_helper_1.int:003: Inferred :- pred p(T1, T2). make[3]: *** [../Mmake.common:172: bad_exported_mode.err_res] Error 1 make[3]: Target 'bad_exported_mode.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-09-02/tests/invalid' ERROR OUTPUT Mercury/ints/bad_exported_mode_helper_1.int:003: Error: `:- mode' declaration Mercury/ints/bad_exported_mode_helper_1.int:003: for predicate `p'/2 without Mercury/ints/bad_exported_mode_helper_1.int:003: a corresponding `:- pred' Mercury/ints/bad_exported_mode_helper_1.int:003: declaration. Mercury/ints/bad_exported_mode_helper_1.int:003: Inferred :- pred p(T1, T2). END OF THE ERROR OUTPUT