aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/TimelinePacketTests.cpp
diff options
context:
space:
mode:
authorJan Eilers <jan.eilers@arm.com>2020-03-26 12:04:54 +0000
committerJan Eilers <jan.eilers@arm.com>2020-03-26 12:04:54 +0000
commita10e2a26b20b124aaa03f20554172d88683257f7 (patch)
tree6ca5740a267857e94aa064500e582667ff2ed325 /src/profiling/test/TimelinePacketTests.cpp
parentaf1c63b98df76caa89ecc8d599de5fe1e0b60d88 (diff)
downloadarmnn-a10e2a26b20b124aaa03f20554172d88683257f7.tar.gz
IVGCVSW-4526 Fix UnitTest errors when running on raspberry pi
* The std::thread::id is included in some timeline packages of the profiler. But the size of thread::id is platform dependent. That's why some tests expected a wrong package size Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I4794ebbdda2d75ed5be7112f6a3bf2e5f14f221b
Diffstat (limited to 'src/profiling/test/TimelinePacketTests.cpp')
-rw-r--r--src/profiling/test/TimelinePacketTests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/profiling/test/TimelinePacketTests.cpp b/src/profiling/test/TimelinePacketTests.cpp
index 1d5d45176c..5401712205 100644
--- a/src/profiling/test/TimelinePacketTests.cpp
+++ b/src/profiling/test/TimelinePacketTests.cpp
@@ -739,11 +739,12 @@ BOOST_AUTO_TEST_CASE(TimelineEventPacketTestFullConstructionOfData)
boost::numeric_cast<unsigned int>(buffer.size()),
numberOfBytesWritten);
BOOST_CHECK(result == TimelinePacketStatus::Ok);
- BOOST_CHECK(numberOfBytesWritten == 28);
unsigned int uint32_t_size = sizeof(uint32_t);
unsigned int uint64_t_size = sizeof(uint64_t);
- unsigned int threadId_size = sizeof(std::thread::id);
+ unsigned int threadId_size = sizeof(std::thread::id); // Is platform dependent
+
+ BOOST_CHECK(numberOfBytesWritten == 20 + threadId_size);
unsigned int offset = 0;
// Check the decl_id