summaryrefslogtreecommitdiffstats
path: root/testsuite/log01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-06 12:16:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-06 14:07:34 +0200
commit356f59c898c982d7cc45e067d79a329ab5ab8caa (patch)
tree1620c4a0890cc677177e923c94c4d8f9b2535c29 /testsuite/log01
parentsubr_prf.c: Port to RTEMS (diff)
downloadrtems-libbsd-356f59c898c982d7cc45e067d79a329ab5ab8caa.tar.bz2
kvprintf: Add support for %m
Diffstat (limited to 'testsuite/log01')
-rw-r--r--testsuite/log01/test_main.c6
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);
}