diff --git a/test/unittests/common/commonSem_test.cpp b/test/unittests/common/commonSem_test.cpp index 1a1442aba4..f389fbd449 100644 --- a/test/unittests/common/commonSem_test.cpp +++ b/test/unittests/common/commonSem_test.cpp @@ -45,8 +45,7 @@ TEST(commonSem, unique) { int s; - s = semInit(); - EXPECT_EQ(0, s); + semInit(); s = reqSemGive(__FUNCTION__, "test"); EXPECT_EQ(0, s);