IVGCVSW-4229 Fix Intermittent failures in ExternalProfiling
* Added a BufferManager.Reset() method to prevent packets being retained after a test
* Fixed a bug causing the send thread to wait needlessly before moving to active state
* Refactored SendCoundPacketTests and ProfilingTests test helper classes
* Fixed issue where WaitForPacketSent could miss a notification and timeout
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I353a652260c2f7dd465baa9e979e22f50f3ca6a7
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp
index 746edb8..24748bb 100644
--- a/src/profiling/ProfilingService.hpp
+++ b/src/profiling/ProfilingService.hpp
@@ -206,7 +206,7 @@
{
instance.m_StateMachine.TransitionToState(newState);
}
- void WaitForPacketSent(ProfilingService& instance, uint32_t timeout = 1000)
+ bool WaitForPacketSent(ProfilingService& instance, uint32_t timeout = 1000)
{
return instance.m_SendCounterPacket.WaitForPacketSent(timeout);
}