From 11a96f15ca0fcaff19152141bee7ff8e0633892d Mon Sep 17 00:00:00 2001 From: Shin-ichi MORITA Date: Tue, 20 Jun 2017 07:11:53 +0900 Subject: [PATCH 3/3] Fix exit (0) even if unsuccessful In test-pending-call-disconnected, exit (1) if unsuccessful. --- test/name-test/test-pending-call-disconnected.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/name-test/test-pending-call-disconnected.c b/test/name-test/test-pending-call-disconnected.c index 8de0069e..85545a20 100644 --- a/test/name-test/test-pending-call-disconnected.c +++ b/test/name-test/test-pending-call-disconnected.c @@ -80,7 +80,12 @@ main (int argc, char *argv[]) dbus_message_free_data_slot (&slot_message); dbus_pending_call_free_data_slot (&slot_pending); - printf (count == 0 ? "ok\n" : "not ok # Not all refs were unrefed ***\n"); + if (count != 0) + { + printf ("not ok # Not all refs were unrefed ***\n"); + exit (1); + } + printf ("ok\n"); printf ("# Testing completed\n1..1\n"); exit (0); -- 2.13.1