From 6f377b7db9fd847ce9e82f37d7b0dbad5c90bfce Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Tue, 5 Jan 2021 14:42:00 +0000 Subject: IVGCVSW-5630 Unittest failure on mipsel/s390x/ppc64/powerpc * Use ECONNREFUSED #define instead for connection refused error no. * As error code on mips for example is 146 Change-Id: I2c725dc93ab8951d4f42a3ba51e747e01ced3a68 Signed-off-by: Francis Murtagh --- src/profiling/test/ProfilingTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/profiling/test/ProfilingTests.cpp b/src/profiling/test/ProfilingTests.cpp index b06d3b0bc6..ff45a454c3 100644 --- a/src/profiling/test/ProfilingTests.cpp +++ b/src/profiling/test/ProfilingTests.cpp @@ -2111,7 +2111,7 @@ BOOST_AUTO_TEST_CASE(CheckSocketConnectionException2) catch (const arm::pipe::SocketConnectionException& ex) { BOOST_CHECK(ex.GetSocketFd() == 0); - BOOST_CHECK(ex.GetErrorNo() == 111); + BOOST_CHECK(ex.GetErrorNo() == ECONNREFUSED); BOOST_CHECK(ex.what() == std::string("SocketProfilingConnection: Cannot connect to stream socket: Connection refused")); } -- cgit v1.2.1