From e373846d806aacb2841f4dd399a28296e2b5c5fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 31 Aug 2017 16:59:48 -0400 Subject: [PATCH] Tests: erroneous usage of if preprocessor directive MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 8b502d379..2eac697c7 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -123,7 +123,7 @@ void validate_trace(char *parser_path, char *trace_path) } /* Replace by g_spawn_check_exit_status when we require glib >= 2.34 */ -#if G_OS_UNIX +#ifdef G_OS_UNIX ret = WIFEXITED(exit_status) ? WEXITSTATUS(exit_status) : -1; #else ret = exit_status; -- 2.34.1