Commit Graph

3 Commits

Author SHA1 Message Date
Julien Fischer
1f6d83692a Update programming style in tests/hard_coded.
tests/hard_coded/*.m:
    Update programming style, unless doing so would change
    the meaning of the test, in particular:

    - use '.' as a module qualifier in place of '__'
    - use {write,print}_line where appropriate
    - use if-then-else in place of C -> T ; E
    - use state variables in place of DCGs

tests/hard_coded/dir_test.m:
    Document what the expected outputs correspond to.

    Use a uniform module qualifier in the output.

tests/hard_coded/dir_test.exp*:
    Conform to the above change.
2021-01-07 13:58:12 +11:00
Julien Fischer
f3bc84fdfa Fix failing test cases in the java grade.
tests/general/environment.m:
    Catch the exception that is thrown if io.set_environment_var/4 cannot
    modify the environment -- this is always the case for Java -- and print
    out what the exception is.  This avoids the stack trace that would otherwise
    be printed.

    Update the coding style in this test.

tests/general/environment.exp2:
    Add an alternative expected output for systems that do not support
    modifying the environment.

tests/general/Mmakefile:
    Shift the 'environment' test case to the list of those that
    require catching exceptions to be supported.

tests/general/float_roundtrip.exp2:
tests/hard_coded/deep_copy.exp4:
    Add new expected outputs to account for differences in the way floats are
    printed.

tests/hard_coded/dir_test.exp4:
tests/warnings/singleton_test.exp3:
    Update these expected outputs.
2016-02-07 16:02:13 +11:00
Peter Wang
3cfa586dd6 In the Java implementation of `io.call_system_code', don't interrupt
Branches: main

library/io.m:
        In the Java implementation of `io.call_system_code', don't interrupt
        the threads copying the output and error streams of the child process
        immediately after the child process is finished.  Wait for them to
        finish as there may still be buffered data.

tests/hard_coded/Mmakefile:
        Don't treat the `dst_test' test case different in the java grade.
        The code was out of date and is not necessary.

tests/hard_coded/dir_test.exp4:
        Add an expected output for this test case, with Unix-style directory
        separators but no symlink support (java grade on Unix).
2010-03-04 00:39:48 +00:00