Files
mercury/tests/general
Zoltan Somogyi 36dc154ceb Fix two failing C# tests.
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.
2025-10-09 01:34:13 +11:00
..
2023-07-01 02:25:53 +10:00
2014-12-03 18:20:36 +11:00
2020-04-30 16:00:58 +10:00
2020-10-27 11:10:11 +11:00
2019-07-04 23:02:10 +02:00
2021-09-29 22:50:39 +10:00