Skip to content

Commit

Permalink
[TEST] increase timeout for state change
Browse files Browse the repository at this point in the history
State change tests in the armv7l architecture is too long.
Let's increase the timeout limit.

```
[  638s] [ RUN      ] nnstreamerFilterSharedModel.tfliteSharedReload
[  638s] ** Message: 09:59:55.720: accl = cpu
[  638s] ** Message: 09:59:55.725: accl = cpu
[  640s] ../tests/nnstreamer_filter_shared_model/unittest_filter_shared_model.cc:174: Failure
[  640s] Expected equality of these values:
[  640s]   setPipelineStateSync (pipeline, GST_STATE_PLAYING, (2000U))
[  640s]     Which is: -62
[  640s]   0
[  640s]
[  641s] ../tests/nnstreamer_filter_shared_model/unittest_filter_shared_model.cc:180: Failure
[  641s] Expected: (res[0]) != (0U), actual: 0 vs 0
[  641s]
[  643s] [  FAILED  ] nnstreamerFilterSharedModel.tfliteSharedReload (4570 ms)
```

Signed-off-by: gichan2-jang <[email protected]>
  • Loading branch information
gichan-jang authored and jaeyun-jung committed Aug 1, 2024
1 parent 2c70343 commit 3c9a373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittest_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C" {
#endif
#define _print_log(...) do { if (DBG) g_message (__VA_ARGS__); } while (0)

#define UNITTEST_STATECHANGE_TIMEOUT (2000U)
#define UNITTEST_STATECHANGE_TIMEOUT (10000U) /* 10 secs */
#define TEST_DEFAULT_SLEEP_TIME (10000U)
#define TEST_TIMEOUT_LIMIT (10000000U) /* 10 secs */
#define TEST_TIMEOUT_LIMIT_MS (10000U) /* 10 secs */
Expand Down

0 comments on commit 3c9a373

Please sign in to comment.