Skip to content

Commit

Permalink
[TEST] Fix gbs test failure on arm arch.
Browse files Browse the repository at this point in the history
Increase wait time for processing image classificiion.

Signed-off-by: Gichan Jang <[email protected]>
  • Loading branch information
gichan-jang authored and jaeyun-jung committed Nov 26, 2024
1 parent 41bedd2 commit 5c9eb47
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/capi/unittest_capi_service_extension.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ _extension_test_imgclf (ml_service_h handle, gboolean is_pipeline)
int i, status, tried;
void *_raw = NULL;
size_t _size = 0;
guint64 start_time, end_time;
gdouble elapsed_time;

g_autofree gchar *data_file = _get_data_path ("orange.raw");

Expand Down Expand Up @@ -363,10 +365,14 @@ _extension_test_imgclf (ml_service_h handle, gboolean is_pipeline)

/* Let the data frames are passed into ml-service extension handle. */
tried = 0;
start_time = g_get_monotonic_time ();
do {
g_usleep (30000U);
g_usleep (300000U);
} while (tdata->received < 3 && tried++ < 10);

end_time = g_get_monotonic_time ();
elapsed_time = (end_time - start_time) / (double) G_USEC_PER_SEC;
_ml_logd ("[DEBUG] Data received cnt: %u, Elapsed time: %.6f second\n",
tdata->received, elapsed_time);
EXPECT_TRUE (tdata->received > 0);

/* Clear callback before releasing tdata. */
Expand Down

0 comments on commit 5c9eb47

Please sign in to comment.