IVGCVSW-6001 Fix CheckProfilingObjectUids test failing on Ubuntu 21.04

Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Change-Id: I68a9397db974c91d29d6c8a8f9b5f7e32950f141
diff --git a/src/profiling/test/ProfilingTests.cpp b/src/profiling/test/ProfilingTests.cpp
index 6999650..a4a25a8 100644
--- a/src/profiling/test/ProfilingTests.cpp
+++ b/src/profiling/test/ProfilingTests.cpp
@@ -815,7 +815,7 @@
     BOOST_CHECK(nextCounterUids[0] > counterUids[0]);
 
     std::vector<uint16_t> counterUidsMultiCore;
-    uint16_t thirdUid = 4;
+    uint16_t thirdUid = nextCounterUids[0];
     uint16_t numberOfCores = 13;
     BOOST_CHECK_NO_THROW(counterUidsMultiCore = GetNextCounterUids(thirdUid, numberOfCores));
     BOOST_CHECK(counterUidsMultiCore.size() == numberOfCores);