Commit 09fd357
committed
Lin: Print commands that trigger unexpected exceptions
The standard QCheck mechanism to catch exceptions that are raised in
tests do not give much clues about the source (ie Lin command) of that
exception
So this creates a specific Unexpected_exception that will pack the
command along with the original exception so that it can be explained
when the tests errors out
Before:
```
exception Invalid_argument("Bytes.blit")
```
After:
```
exception Invalid_argument("Bytes.blit") unexpected in command Buffer.add_string t ""
```1 parent 158b943 commit 09fd357
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
1 | 12 | | |
2 | 13 | | |
3 | 14 | | |
| |||
464 | 475 | | |
465 | 476 | | |
466 | 477 | | |
467 | | - | |
| 478 | + | |
| 479 | + | |
468 | 480 | | |
0 commit comments