Files
mercury/tests/declarative_debugger/comp_gen.exp
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

26 lines
916 B
Plaintext

1: 1 1 CALL pred comp_gen.main/2-0 (det) comp_gen.m:13
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> break p
0: + stop interface pred comp_gen.p/2-0 (semidet)
mdb> continue
5: 3 2 CALL pred comp_gen.p/2-0 (semidet) comp_gen.m:34 (comp_gen.m:16)
mdb> step
6: 4 3 CALL __Unify__ for comp_gen.foo/1-0 (semidet) comp_gen.m:23 (comp_gen.m:34)
mdb> finish
7: 4 3 FAIL __Unify__ for comp_gen.foo/1-0 (semidet) comp_gen.m:23 (comp_gen.m:34)
mdb> dd -d 3 -n 7
mdb: cannot start declarative debugging at compiler generated procedures.
mdb> continue
8: 3 2 FAIL pred comp_gen.p/2-0 (semidet) comp_gen.m:34 (comp_gen.m:16)
mdb> dd -d 3 -n 7
Call p(f(1), f(2))
Unsatisfiable? no
Found partially uncovered atom:
p(f(1), f(2))
Is this a bug? yes
8: 3 2 FAIL pred comp_gen.p/2-0 (semidet) comp_gen.m:34 (comp_gen.m:16)
mdb> continue
no