[Single] Added unittests
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 17 Sep 2019 10:47:04 +0000 (19:47 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 18 Sep 2019 13:47:04 +0000 (22:47 +0900)
commit4777fa746ec55330d2bf31fe23bc2c5988bb0580
treee3b931eb88b092242c8cbd578e693f04f058e3ec
parent680504cd4d43a7f69dc1e6687ccf3a93e2a9acb1
[Single] Added unittests

Added more unittests for single-shot API testing
1. Multiple runs in parallel with varying timeouts
2. Changing timeout/closing the handle while calling the API in a different thread
3. Closing the handle multiple times
4. Check valid result after increasing the timeout, when earlier it was timing out

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
api/capi/src/nnstreamer-capi-single-new.c
api/capi/src/nnstreamer-capi-single.c
tests/tizen_capi/unittest_tizen_capi.cpp