diff options
Diffstat (limited to 'mps/code/testlib.h')
| -rw-r--r-- | mps/code/testlib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mps/code/testlib.h b/mps/code/testlib.h index 1d0ee79289b..9df253d797e 100644 --- a/mps/code/testlib.h +++ b/mps/code/testlib.h | |||
| @@ -159,6 +159,15 @@ extern void die_expect(mps_res_t res, mps_res_t expected, const char *s); | |||
| 159 | extern void cdie(int res, const char *s); | 159 | extern void cdie(int res, const char *s); |
| 160 | 160 | ||
| 161 | 161 | ||
| 162 | /* assert_die -- always die on assertion | ||
| 163 | * | ||
| 164 | * The MPS assertion handler may not stop in the HOT variety, | ||
| 165 | * preventing tests from detecting defects. This one does. | ||
| 166 | */ | ||
| 167 | |||
| 168 | void assert_die(const char *file, unsigned line, const char *condition); | ||
| 169 | |||
| 170 | |||
| 162 | /* error, verror -- die with message */ | 171 | /* error, verror -- die with message */ |
| 163 | 172 | ||
| 164 | extern void error(const char *format, ...); | 173 | extern void error(const char *format, ...); |