From af3df1125ed6df07f91b8fb010b131e8f6e2f131 Mon Sep 17 00:00:00 2001 From: Lukasz Wojciechowski Date: Tue, 17 Mar 2015 16:10:06 +0100 Subject: [PATCH] Use proper RUNNER_ASSERT macros Don't print errno message, when it's not valid or related to assert condition. Change-Id: I7012d5c97c1504df3d78fec0eac997d99560e374 --- src/cynara-tests/common/cynara_test_client_async_client.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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, -- 2.7.4