Fix test/signal-logging to work on Solaris
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Mon, 10 Feb 2014 07:13:50 +0000 (23:13 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 25 Feb 2014 00:31:45 +0000 (16:31 -0800)
commit0031f6b073c7a4cca553c1d3e185a63436a75cbe
treeb30c784bd005b9215d4ea6aa581a5cab583efc3a
parente67f2d7e0f9189beb2907fa06cff5ecc7f35f922
Fix test/signal-logging to work on Solaris

For some reason, Solaris libc sprintf() doesn't add "0x" to the %p output
as glibc does, causing the test to fail for not matching the exact output.
Since the 0x is desirable, we add it ourselves to the test string.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
test/signal-logging.c