diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-05-12 16:36:46 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-05-13 06:57:07 +0000 |
commit | 5bb3d8a1edeab3f4fdbeb9baf7922cc52bd815fb (patch) | |
tree | dde9b2ebeeccb81e089d1f4281dfbc3092bd626b /src/armnn/test/RuntimeTests.cpp | |
parent | 0c8cb99db6dd8b1ea073ef7227b2872a3cb0b269 (diff) | |
download | armnn-5bb3d8a1edeab3f4fdbeb9baf7922cc52bd815fb.tar.gz |
IVGCVSW-4775 Centralizing definition of ThreadIdSize to fix MLCE-189
* Introduce a constant definition of the size of a POSIX thread ID.
* Update all code to use the new constant definition.
* Update all unit tests to use the new constant definition.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I836ab1a77ed13f774e66fd7b425923c24b9a6dab
Diffstat (limited to 'src/armnn/test/RuntimeTests.cpp')
-rw-r--r-- | src/armnn/test/RuntimeTests.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/armnn/test/RuntimeTests.cpp b/src/armnn/test/RuntimeTests.cpp index 2fc4b50a54..c4a96263dd 100644 --- a/src/armnn/test/RuntimeTests.cpp +++ b/src/armnn/test/RuntimeTests.cpp @@ -835,8 +835,7 @@ BOOST_AUTO_TEST_CASE(ProfilingEnableCpuRef) // Validate inference data size = inferenceReadableBuffer->GetSize(); - unsigned int threadId_size = sizeof(std::thread::id); // Is platform dependent - BOOST_CHECK(size == 1208 + 8 * threadId_size); + BOOST_CHECK(size == 1208 + 8 * ThreadIdSize); readableData = inferenceReadableBuffer->GetReadableData(); BOOST_CHECK(readableData != nullptr); @@ -844,7 +843,7 @@ BOOST_AUTO_TEST_CASE(ProfilingEnableCpuRef) offset = 0; // Verify Header - VerifyTimelineHeaderBinary(readableData, offset, 1200 + 8 * threadId_size); + VerifyTimelineHeaderBinary(readableData, offset, 1200 + 8 * ThreadIdSize); // Inference timeline trace // Inference entity |