Problem
The getTempo test in TestMIDDriver.cpp contains a busy-wait loop that could potentially hang indefinitely on flaky platforms:
while (!md.isTempoChanged()) {
utils::delayMillis(10);
}
This can cause CI builds to hang under certain conditions, especially when running with -Werror flags.
Context
Expected Solution
Add a timeout mechanism (e.g., 2 seconds) to the wait loop with proper test failure handling to ensure tests complete reliably.
Problem
The
getTempotest inTestMIDDriver.cppcontains a busy-wait loop that could potentially hang indefinitely on flaky platforms:This can cause CI builds to hang under certain conditions, especially when running with
-Werrorflags.Context
sdl2-hyper-sonic-drivers/test/HyperSonicDrivers/drivers/TestMIDDriver.cppExpected Solution
Add a timeout mechanism (e.g., 2 seconds) to the wait loop with proper test failure handling to ensure tests complete reliably.