mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
tests/general/read_dir_regression.m:
Fix the code that canonicalized error messages for C#.
It probably broke when we added a "can't open input file:" prefix
to the error message, because the quote in "can't" confused it.
tests/hard_coded/foreign_import_module.m:
tests/hard_coded/foreign_import_module_helper_1.m:
Fix several things to make this test case work.
- Add a foreign_import_module pragma for the helper module.
There was one originally, but it was marked as being for "il",
and the pragma was deleted, not replaced, when the IL backend
was deleted.
- Refer to the foo function and the foo2 predicate that
the main module imports from the helper module by their
actual names in the compiler-generated C# code.
(The old names the test used were probably IL-specific,
though I am not sure.)
- Invoke the foo function as a function; we used to invoke it as
a predicate. (The C# calling convention may have changed
in the meantime, and in fact, the original convention could have
been for Managed C++ instead.)
- Make the predicate exported by the C# foreign_code in the
helper module public.
- Initialize a variable passed by reference in order to avoid
an error message from the C# compiler.
Add an XXX about the code of foreign_import_module.m containing
two just-about-identical halves.
tests/EXPECT_FAIL_TESTS.csharp:
Stop expecting the foreign_import_module test case to fail.
tests/hard_coded/dst_test.m:
Improve programming style, and fix some typos.
18 lines
432 B
Plaintext
18 lines
432 B
Plaintext
hard_coded/array_sort
|
|
hard_coded/bug383
|
|
hard_coded/construct_mangle
|
|
hard_coded/dst_test
|
|
hard_coded/final_excp
|
|
hard_coded/foreign_name_mutable
|
|
hard_coded/functor_ho_inst_excp
|
|
hard_coded/functor_ho_inst_excp_2
|
|
hard_coded/init_excp
|
|
hard_coded/intermod_foreign_type
|
|
hard_coded/mutable_excp
|
|
hard_coded/print_stream
|
|
hard_coded/seek_test
|
|
hard_coded/stdlib_init
|
|
hard_coded/stream_putback_binary
|
|
hard_coded/write_binary
|
|
hard_coded/write_xml
|