From a0de05689870ecede28ca91ea0c8474daa7f8d6a Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Wed, 22 Apr 2020 12:27:37 +0100 Subject: IVGCVSW-4719 Remove possible zeros from SendStreamMetaDataPacket offsets Signed-off-by: Finn Williams Change-Id: I8d7ee408c4c73be9b42bb739254b95c476e0e38c --- src/profiling/test/ProfilingTests.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/profiling/test/ProfilingTests.cpp') 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(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; -- cgit v1.2.1