aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTests.cpp
diff options
context:
space:
mode:
authorPavel Macenauer <pavel.macenauer@linaro.org>2020-05-26 10:54:22 +0000
committerDerek Lamberti <derek.lamberti@arm.com>2020-05-27 12:19:00 +0000
commit855a47b1b0a78c839a674cc1e61d0668b8c4e349 (patch)
tree946e6e78ad98fd84fc9e43aabf508debb321b43d /src/profiling/test/ProfilingTests.cpp
parent12239e7291fb04b862e44045be0a4feb7751af62 (diff)
downloadarmnn-855a47b1b0a78c839a674cc1e61d0668b8c4e349.tar.gz
Catch exceptions by const reference
Change-Id: I4b4d8ae419dfb8470e8937e75cd3bab85f03b935 Signed-off-by: Pavel Macenauer <pavel.macenauer@nxp.com>
Diffstat (limited to 'src/profiling/test/ProfilingTests.cpp')
-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 c541c82717..e3a49e48c3 100644
--- a/src/profiling/test/ProfilingTests.cpp
+++ b/src/profiling/test/ProfilingTests.cpp
@@ -2088,7 +2088,7 @@ BOOST_AUTO_TEST_CASE(CheckSocketConnectionException2)
{
new SocketProfilingConnection();
}
- catch (armnnProfiling::SocketConnectionException& ex)
+ catch (const armnnProfiling::SocketConnectionException& ex)
{
BOOST_CHECK(ex.GetSocketFd() == 0);
BOOST_CHECK(ex.GetErrorNo() == 111);