diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-02-14 16:24:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-07 09:41:11 +1000 |
commit | d9848fb4b182ca21bacf28ed7410d1a502cb000e (patch) | |
tree | 50100cf0cc939a0f9f87af933f3282e061bd1031 /test | |
parent | d903d17d7f006fa333265b8476063b189c20d082 (diff) |
os: complain about unsupported pnprintf directives
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/signal-logging.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/signal-logging.c b/test/signal-logging.c index b45d8d4f3..f6bc85ce8 100644 --- a/test/signal-logging.c +++ b/test/signal-logging.c @@ -206,6 +206,13 @@ static void logging_format(void) read_log_msg(logmsg); assert(strcmp(logmsg, "(EE) test a\n") == 0); + /* something unsupported % */ + LogMessageVerbSigSafe(X_ERROR, -1, "test %Q\n"); + read_log_msg(logmsg); + assert(strstr(logmsg, "BUG") != NULL); + LogMessageVerbSigSafe(X_ERROR, -1, "\n"); + fseek(f, 0, SEEK_END); + /* string substitution */ LogMessageVerbSigSafe(X_ERROR, -1, "%s\n", "substituted string"); read_log_msg(logmsg); |