test/internals/syslog: Switch to g_test_trap_subprocess()
authorSimon McVittie <smcv@collabora.com>
Fri, 9 Jun 2017 13:47:39 +0000 (14:47 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 12 Jun 2017 10:42:09 +0000 (11:42 +0100)
commit4d6495d03db643622e448ce91bb8134bbece7197
treec50ca66cc189e4cc1bcaaf487439061a118611d9
parent8821af59c8b94fdc22b1ed1217cbce80791b4222
test/internals/syslog: Switch to g_test_trap_subprocess()

This re-executes the same binary with special command-line options
instead of forking. As a result, it can work on Windows, and is less
dependent on Unix libraries continuing to work across a fork().

(This has been confirmed to work in Windows binaries running under Wine.)

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101362
test/internals/syslog.c