aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2021-01-05 14:42:00 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2021-01-12 11:17:39 +0000
commit6f377b7db9fd847ce9e82f37d7b0dbad5c90bfce (patch)
tree1dfab033ba717c79c5095c7ce29567f60513e891
parent4243211cb16d1960b2e1423ebdb83d619cc74b37 (diff)
downloadarmnn-6f377b7db9fd847ce9e82f37d7b0dbad5c90bfce.tar.gz
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 <francis.murtagh@arm.com>
-rw-r--r--src/profiling/test/ProfilingTests.cpp2
1 files changed, 1 insertions, 1 deletions
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"));
}