Commit Graph

7 Commits (89d6a2094b12764a42576f1008d5e0178f6f4bd0)

Author SHA1 Message Date
Gabriel Scherer 89d6a2094b change or-pattern printing to use spaces instead of cuts
(A p1 | B p2 | C p3) instead of (A p1|B p2|C p3)
2020-11-03 22:17:16 +01:00
Gabriel Scherer 5cc12b8100
testsuite/tests/formatting: remove native-compiler location tests (#9871)
The tests for -dlocations are painful to update for native compiler
backends. They were previously restricted to 64bit architectures only
( e57785524b ), and disabled on AFL
( 829b00b6c7 ), but the fact that they
have to be updated for both clambda and flambda backends is annoying
in practice. This commit disables location-testing completely for the
native backend, and only checks locations in the bytecode compiler
intermediate representations, from -dparsetree to -dlambda.

Note: now the we have bytecode-only versions of the test, it should be
more portable. The test has been re-enabled for 32bit and AFL
configurations. It will still need tweaking in the future if people
perform configuration-dependent changes on the Lambda representation
(but hopefully those changes could be disabled by command-line options
to be added to the test configuration).
2020-09-02 11:41:20 +02:00
Anil Madhavapeddy 829b00b6c7 Restrict 'test_locations' to not run with afl active
The AFL code generator alters the generated output and the
expect tests fail.  This test is already restricted to 64-bit
only architectures for similar reasons (the output locations
change).

Also updates the expected outputs to account for the extra line
in the test case now.

Fixes #9822
2020-08-05 20:04:34 +01:00
Xavier Leroy e57785524b Restrict 'test_locations' to 64-bit archs and update expected outputs
Expected outputs contain integer values for the "closure info"
field of some closures.  These values differ in 32 and 64 bits,
since the arity is stored in top 8 bits.  This test would need
different expected outputs for 32- and 64-bit platforms.

To keep things simple, this commit restricts the test
to only run on 64-bit platforms.  Since this changes the locations
2020-06-05 17:48:19 +02:00
Gabriel Scherer c544d640b6 fix the testsuite (and add -dno-unique-ids where reasonable) 2020-05-16 17:51:54 +02:00
Stephen Dolan b7716c4625 Update testsuite with new backtrace format, and add test for names 2020-04-27 12:58:53 +01:00
Gabriel Scherer 8938886721 -dno-locations: hide source locations (and debug events) from IR dumps
This PR was tested with also the -dsel, -dlinear output (also fixed to
not-print locations), but the output is architecture-dependent so this
part of the test was removed.
2020-01-09 15:25:16 +01:00