[TEST] Adjust state change timeout.
authorgichan <gichan2.jang@samsung.com>
Thu, 16 Sep 2021 02:43:22 +0000 (11:43 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 16 Sep 2021 10:48:27 +0000 (19:48 +0900)
cppFilterObj.base03 test fail intermittenly on armv7l during state change to GST_STATE_PLAYING.
When measuring the state change tome, it took around 600~800ms on armv7l.
The current timeout is 1000ms, which is close to the boundary.
The test failure did not occur when repeated 1000 times.
Previously, it occurred about once in 20 times.

Signed-off-by: gichan <gichan2.jang@samsung.com>
tests/unittest_util.h

index 190e19a..c050d13 100644 (file)
@@ -24,7 +24,7 @@ extern "C" {
 #endif
 #define _print_log(...) if (DBG) g_message (__VA_ARGS__)
 
-#define UNITTEST_STATECHANGE_TIMEOUT (1000U)
+#define UNITTEST_STATECHANGE_TIMEOUT (2000U)
 #define TEST_DEFAULT_SLEEP_TIME (10000U)
 #define TEST_TIMEOUT_LIMIT (10000000U) /* 10 secs */