]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1657] fixed rebase
authorRazvan Becheriu <razvan@isc.org>
Fri, 19 Feb 2021 12:43:22 +0000 (14:43 +0200)
committerRazvan Becheriu <razvan@isc.org>
Mon, 22 Feb 2021 16:02:57 +0000 (16:02 +0000)
src/lib/asiolink/tests/process_spawn_unittest.cc

index 6f7c9dcf2cf24db02ffa09809b782afac1107eba..7f6dc2e19c3fd0d4bb77fd11ea5b0f4a96629a18 100644 (file)
@@ -88,22 +88,6 @@ public:
     }
 };
 
-
-// This test verifies that if the thread calling spawn has SIGCHLD
-// already block ProcessSpawnError is thrown (@todo the second error
-// case: fork() failing)
-TEST_F(ProcessSpawnTest, sigchldBlocked) {
-    vector<string> args;
-    ProcessSpawn process(io_service_, TEST_SCRIPT_SH, args);
-    sigset_t sset;
-    sigemptyset(&sset);
-    sigaddset(&sset, SIGCHLD);
-    sigset_t osset;
-    pthread_sigmask(SIG_BLOCK, &sset, &osset);
-    EXPECT_THROW(process.spawn(), ProcessSpawnError);
-    sigprocmask(SIG_SETMASK, &osset, 0);
-}
-
 // This test verifies that the external application can be ran with
 // arguments and that the exit code is gathered.
 TEST_F(ProcessSpawnTest, spawnWithArgs) {