Commit Graph

3 Commits

Author SHA1 Message Date
Zoltan Somogyi
ad1be2b355 Add tests/declarative_debugger/throw.exp4, ...
record what circumstance it is for, and update line numbers in all the other
expected output files.
2022-01-08 08:52:55 +11:00
Zoltan Somogyi
a8e77272ea Fix "failure" of declarative_debugger/throw with -O5.
The compiler has optimizations that try to push the creation of variables
holding constants (specifically, HeadVar__1 = 1 in the q predicate)
to just before the first use of each such variable. The goal paths printed
by the test case depend on whether this has been done. The .exp test case
is the expected output without such optimization, and the test case was
recorded as a failure because there we no .exp* file containing the
expected output with such optimization.

tests/declarative_debugger/throw.exp3:
    Make this .exp3 file contain that expected output.

    The old contents of this file couldn't have been matched since 2005,
    when Ian changed the Mmakefile to execute this test with $(MDB_STD)
    instead of $(MDB).

tests/declarative_debugger/throw.m:
    Record in what circumstances we expect to match the .exp3 file.
2021-08-07 01:29:53 +10:00
Zoltan Somogyi
d9a1050af6 Flatten the test directories, step 1.
Specifically, rename the following subdirectories of the test directory:

    old dir name                new dir name

    analysis/ext                analysis_external
    analysis/ctgc               analysis_ctgc
    analysis/excp               analysis_excp
    analysis/table              analysis_table
    analysis/trail              analysis_trail
    invalid/purity              invalid_purity
    analysis/sharing            analysis_sharing
    hard_coded/purity           purity
    general/accumulator         accumulator
    analysis/unused_args        analysis_unused_args
    debugger/declarative        declarative_debugger
    hard_coded/exceptions       exceptions
    general/string_format       string_format
    hard_coded/sub-modules      submodules
    hard_coded/typeclasses      typeclasses
    general/structure_reuse     structure_reuse

Some subdirectories are still there, to wit, the subdirs of the inactive
test directory stm, each of which (if I remember correctly) holds only one
test case.

The general/structure_reuse directory previously wasn't enabled; I think
this was a bug.

tests/Mmakefile:
tools/bootcheck:
    List the new test directories.

tests/Mmake.common:
    The analysis_* directories each need to know whether the workspace
    uses subdirs. This used to be controlled from one place,
    analysis/Mmakefile, but since analysis_* are not subdirs of analysis,
    we need a new central place to find this out.

tests/analysis/common.sh:
    Update documentation for the move.

tests/OLDDIRS/Mmakefile:
    Set the subdir list to empty.

tests/NEWDIRS/Mmakefile:
    Update the "this" directory's name, as well as TESTS_DIR.

    In analysis_*/Mmakefile, use the new mechanism for detecting the presence
    of subdirs.
2015-02-10 00:43:02 +11:00