diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-04-22 12:27:37 +0100 |
---|---|---|
committer | Finn Williams <Finn.Williams@arm.com> | 2020-04-22 14:14:42 +0100 |
commit | a0de05689870ecede28ca91ea0c8474daa7f8d6a (patch) | |
tree | 3fd1f3730bebd44240e5d848ff726aa123d0f564 /src/profiling/test/ProfilingTests.cpp | |
parent | 6544f40295e93fbb8d25582bd3a94341537ec6ca (diff) | |
download | armnn-a0de05689870ecede28ca91ea0c8474daa7f8d6a.tar.gz |
IVGCVSW-4719 Remove possible zeros from SendStreamMetaDataPacket offsets
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I8d7ee408c4c73be9b42bb739254b95c476e0e38c
Diffstat (limited to 'src/profiling/test/ProfilingTests.cpp')
-rw-r--r-- | src/profiling/test/ProfilingTests.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/profiling/test/ProfilingTests.cpp b/src/profiling/test/ProfilingTests.cpp index b3326e0173..64646b461c 100644 --- a/src/profiling/test/ProfilingTests.cpp +++ b/src/profiling/test/ProfilingTests.cpp @@ -2458,10 +2458,7 @@ BOOST_AUTO_TEST_CASE(RequestCounterDirectoryCommandHandlerTest2) BOOST_AUTO_TEST_CASE(CheckProfilingServiceGoodConnectionAcknowledgedPacket) { - // Calculate the size of a Stream Metadata packet - std::string processName = GetProcessName().substr(0, 60); - unsigned int processNameSize = processName.empty() ? 0 : boost::numeric_cast<unsigned int>(processName.size()) + 1; - unsigned int streamMetadataPacketsize = 118 + processNameSize; + unsigned int streamMetadataPacketsize = GetStreamMetaDataPacketSize(); // Reset the profiling service to the uninitialized state armnn::Runtime::CreationOptions::ExternalProfilingOptions options; |