From: Lukasz Wojciechowski Date: Tue, 17 Mar 2015 15:10:06 +0000 (+0100) Subject: Use proper RUNNER_ASSERT macros X-Git-Tag: security-manager_5.5_testing~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af3df1125ed6df07f91b8fb010b131e8f6e2f131;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Use proper RUNNER_ASSERT macros Don't print errno message, when it's not valid or related to assert condition. Change-Id: I7012d5c97c1504df3d78fec0eac997d99560e374 --- diff --git a/src/cynara-tests/common/cynara_test_client_async_client.cpp b/src/cynara-tests/common/cynara_test_client_async_client.cpp index ac4e9de..3de731a 100644 --- a/src/cynara-tests/common/cynara_test_client_async_client.cpp +++ b/src/cynara-tests/common/cynara_test_client_async_client.cpp @@ -147,17 +147,17 @@ void Client::process(int expectedResult, ret = TEMP_FAILURE_RETRY(select(fd + 1, &fds, &fds, NULL, &tv)); if (ret == 0) { - RUNNER_ASSERT_ERRNO_MSG(timeoutExpectation != EXPECT_NO_TIMEOUT, - "Unexpected select timeout." - << " ret = " << ret); + RUNNER_ASSERT_MSG(timeoutExpectation != EXPECT_NO_TIMEOUT, + "Unexpected select timeout." + << " ret = " << ret); return; } RUNNER_ASSERT_ERRNO_MSG(ret > 0, "Select returned error:" << " ret = " << ret); - RUNNER_ASSERT_ERRNO_MSG(timeoutExpectation != EXPECT_TIMEOUT, - "Select returned positive value, when timeout was expected." - << " ret = " << ret); + RUNNER_ASSERT_MSG(timeoutExpectation != EXPECT_TIMEOUT, + "Select returned positive value, when timeout was expected." + << " ret = " << ret); RUNNER_DEFER_SCOPE(ret = cynara_async_process(m_cynara);); RUNNER_ASSERT_MSG(ret == expectedResult,