From dcead04cf67634571752ab73ec649de055487c9b Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 22 Jan 2014 12:10:34 +0000 Subject: [PATCH] Fix up the check_util test once more --- tests/unit/check_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/check_util.c b/tests/unit/check_util.c index 7a5837f..b6e3aaa 100644 --- a/tests/unit/check_util.c +++ b/tests/unit/check_util.c @@ -74,9 +74,9 @@ START_TEST( test_fatal_kills_process ) int kidret, kidstatus, result; result = waitpid( pid, &kidret, 0 ); fail_if( result < 0, "Wait failed." ); - kidstatus = WEXITSTATUS( kidret ); + fail_unless( WIFSIGNALED( kidret ), "Process didn't exit via signal" ); + kidstatus = WTERMSIG( kidret ); ck_assert_int_eq( kidstatus, SIGABRT ); -// fail_unless( kidstatus == 6, "Kid was not aborted." ); } }