[Test] Prevent unit-test errors in slow systems
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 4 Sep 2019 07:21:28 +0000 (16:21 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 5 Sep 2019 07:07:15 +0000 (16:07 +0900)
commit190dd332387d00cbbc1f24383d03314a2ec571ba
tree364f4f81e1b24ec1486cf84d5dcc2b580b54c52a
parent352d1d4928a1491913021cd8356e4e5b3a3197e4
[Test] Prevent unit-test errors in slow systems

In slow systems such as QEMU-ARM, a few test cases fail often.

- Add dynamic timeout for pipeline start
- Add mutex for sink callbacks

Changes in v2:
- Loop of wait_for_start runs if it's READY || PAUSED
- Wait 50us right after start() before state-checking.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tests/tizen_capi/unittest_tizen_capi.cpp