diff options
Diffstat (limited to 'common/t-stringhelp.c')
-rw-r--r-- | common/t-stringhelp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/t-stringhelp.c b/common/t-stringhelp.c index 869ca56f0..189fed1f9 100644 --- a/common/t-stringhelp.c +++ b/common/t-stringhelp.c @@ -886,6 +886,11 @@ test_format_text (void) struct test *test = &tests[i]; char *result = format_text (test->input, test->target_cols, test->max_cols); + if (!result) + { + fail (1); + exit (2); + } if (strcmp (result, test->expected) != 0) { printf ("%s: Test #%d failed.\nExpected: '%s'\nResult: '%s'\n", |