[SSSD] [PATCH] tests: Don't set the check fork mode explicitly

Jakub Hrozek jhrozek at redhat.com
Thu Apr 10 08:59:24 UTC 2014


A small fix for the sbus unit tests in master.
-------------- next part --------------
>From 6c7a2a81060396b61832a60d9682188b85146661 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Wed, 9 Apr 2014 19:31:15 +0200
Subject: [PATCH] tests: Don't set the check fork mode explicitly

Instead, let the user pick the fork mode with CK_FORK variable (see info
check)
---
 src/tests/sbus_codegen_tests.c | 1 -
 src/tests/sbus_tests.c         | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c
index decff339d35d1dcb2b8dcda006f31d72c28b0ac9..8055cf206f2f632a47b57f36d3f77220e970e4c2 100644
--- a/src/tests/sbus_codegen_tests.c
+++ b/src/tests/sbus_codegen_tests.c
@@ -205,7 +205,6 @@ int main(int argc, const char *argv[])
 
     suite = create_suite();
     sr = srunner_create(suite);
-    srunner_set_fork_status(sr, CK_FORK);
     /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */
     srunner_run_all(sr, CK_ENV);
     failure_count = srunner_ntests_failed(sr);
diff --git a/src/tests/sbus_tests.c b/src/tests/sbus_tests.c
index 10f0d65773c81c83c3c6945ca1d5ce8573b50552..194ba60ef4c128a628e07e45ca33a922136d31bf 100644
--- a/src/tests/sbus_tests.c
+++ b/src/tests/sbus_tests.c
@@ -370,7 +370,6 @@ int main(int argc, const char *argv[])
 
     suite = create_suite();
     sr = srunner_create(suite);
-    srunner_set_fork_status(sr, CK_NOFORK);
     /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */
     srunner_run_all(sr, CK_ENV);
     failure_count = srunner_ntests_failed(sr);
-- 
1.9.0



More information about the sssd-devel mailing list