Commit Graph

5 Commits

Author SHA1 Message Date
Julien Fischer
5de97e355a Replace references to the c_header_code pragma.
tests/hard_coded/needs_init.m:
tests/hard_coded/pragma_c_code.m:
    As above.
2023-02-25 12:55:08 +11:00
Zoltan Somogyi
2f7c5fb87f Update the programming style of some tests. 2020-10-03 17:43:38 +10:00
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00
David Jeffery
5356c0e42d Include stdio.h in this test case so that FILE is defined
Estimated hours taken: 0.1

tests/hard_coded/needs_init.m:
        Include stdio.h in this test case so that FILE is defined
        in hlc grades.
2001-08-23 05:48:09 +00:00
David Jeffery
1500344ad4 Ensure that initialisation code is included if the user explictly
Estimated hours taken: 4

util/mkinit.c:
        Ensure that initialisation code is included if the user explictly
        asks for it.

tests/hard_coded/Mmakefile:
tests/hard_coded/needs_init.m:
tests/hard_coded/needs_init.exp:
        A test case to ensure that initialisation code can be explicitly
        run.
2001-08-21 06:58:53 +00:00