diff options
Diffstat (limited to 'testsuite/log01')
-rw-r--r-- | testsuite/log01/test_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/log01/test_main.c b/testsuite/log01/test_main.c index 0b3db765..5c177359 100644 --- a/testsuite/log01/test_main.c +++ b/testsuite/log01/test_main.c @@ -36,6 +36,7 @@ #include <syslog.h> #include <assert.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -138,6 +139,11 @@ test_main(void) printf("out: %4D", "AAAA", ":"); check(ctx, "out: 41:41:41:41"); + errno = ENOMSG; + reset(ctx, LOG_PRINTF); + printf("%m"); + check(ctx, "No message of desired type"); + exit(0); } |