diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2014-09-29 14:41:29 +0200 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2014-09-29 14:43:44 +0200 |
| commit | 4e8d63ace93a06cb416618714408ae1c41223812 (patch) | |
| tree | a34251b24b0882a91caf8d7824f874f663451095 /tests | |
| parent | 5d3d357c39412d2e429668adb04c0b894729e158 (diff) | |
Added the -t CLI option
This option makes tamasheq print any exception that escaped the eval
function. Thus, instead of crashing, tamasheq will exit normally.
This option is used in run_tests.sh when some of the tests do fail on
purpose (see tests/AssertFalse.ml).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/AssertFalse.expected | 1 | ||||
| -rw-r--r-- | tests/AssertFalse.ml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/AssertFalse.expected b/tests/AssertFalse.expected new file mode 100644 index 0000000..1b12ae5 --- /dev/null +++ b/tests/AssertFalse.expected @@ -0,0 +1 @@ +File "AssertFalse.ml", line 1, characters 8-14: Assertion failed diff --git a/tests/AssertFalse.ml b/tests/AssertFalse.ml new file mode 100644 index 0000000..ff92592 --- /dev/null +++ b/tests/AssertFalse.ml @@ -0,0 +1 @@ +let x = assert false |
