Commit 41eed442 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Wait on the specified child in the rcu fork test

Summary: [Folly] Wait on the specified child in the rcu fork test, v.s. waiting on any child. Makes the test more exact.

Differential Revision: D14869269

fbshipit-source-id: 2bb0110e5097f1dfe21602a09893a33e92421555
parent 8ad6b845
......@@ -220,8 +220,8 @@ TEST(RcuTest, ForkTest) {
// parent
rcu_default_domain()->unlock_shared(std::move(epoch));
synchronize_rcu();
int status;
auto pid2 = wait(&status);
int status = -1;
auto pid2 = waitpid(pid, &status, 0);
EXPECT_EQ(status, 0);
EXPECT_EQ(pid, pid2);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment