diff options
| author | Gareth Rees | 2013-06-03 12:25:18 +0100 |
|---|---|---|
| committer | Gareth Rees | 2013-06-03 12:25:18 +0100 |
| commit | f154b62bf4d7316a23d605891e54fce8aa05b52d (patch) | |
| tree | fa525c0c7f99c56739b36301e612583b45099e97 /mps/code/testlib.h | |
| parent | 5a508d21783d2986dae8b300f8aa2b0b5cbb2f6f (diff) | |
| parent | e07ee8b8e324593ada1f19a8aaa59b475b5144e3 (diff) | |
| download | emacs-f154b62bf4d7316a23d605891e54fce8aa05b52d.tar.gz emacs-f154b62bf4d7316a23d605891e54fce8aa05b52d.zip | |
Catch-up merge from master sources to mps/branch/2013-05-17/emergency
Copied from Perforce
Change: 182417
ServerID: perforce.ravenbrook.com
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, ...); |