From: Naoki Kambe Date: Wed, 14 Mar 2012 09:33:04 +0000 (+0900) Subject: [1751] check with a real pid X-Git-Tag: trac2351_base~226^2~116^2~100^2~12^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddf22289ac033aa2ffdaf8e348c4a05f2d1d6951;p=thirdparty%2Fkea.git [1751] check with a real pid --- diff --git a/src/bin/auth/tests/statistics_unittest.cc b/src/bin/auth/tests/statistics_unittest.cc index 31a1e89b05..2c25591ef0 100644 --- a/src/bin/auth/tests/statistics_unittest.cc +++ b/src/bin/auth/tests/statistics_unittest.cc @@ -281,8 +281,8 @@ TEST_F(AuthCountersTest, submitStatisticsWithoutValidator) { ->get(0)->stringValue()); EXPECT_EQ("Auth", statistics_session_.sent_msg->get("command") ->get(1)->get("owner")->stringValue()); - EXPECT_TRUE(statistics_session_.sent_msg->get("command") - ->get(1)->get("pid")->intValue() > 0); + EXPECT_EQ(statistics_session_.sent_msg->get("command") + ->get(1)->get("pid")->intValue(), getpid()); ConstElementPtr statistics_data = statistics_session_.sent_msg ->get("command")->get(1) ->get("data");