diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-01-03 10:09:34 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-01-07 09:52:42 +0200 |
commit | 4df966c290c9bd47b4d1d53532c4bf8dc5111806 (patch) | |
tree | 9a108ac5cff1f554e9bd5934618235ba73a834ed /example | |
parent | e3c535e3d02b1d38d7a7afc126e49158af13c33d (diff) |
example: timer_accuracy: set exit code on failure
Set correct application exit code on failure.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/timer/odp_timer_accuracy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/timer/odp_timer_accuracy.c b/example/timer/odp_timer_accuracy.c index b7fc55701..b9a0cf585 100644 --- a/example/timer/odp_timer_accuracy.c +++ b/example/timer/odp_timer_accuracy.c @@ -751,6 +751,7 @@ int main(int argc, char *argv[]) if (test_global.timer_ctx == NULL) { printf("Timer context table calloc failed.\n"); + ret = -1; goto quit; } @@ -772,6 +773,7 @@ int main(int argc, char *argv[]) if (shm == ODP_SHM_INVALID) { printf("Test log alloc failed.\n"); + ret = -1; goto quit; } @@ -781,7 +783,8 @@ int main(int argc, char *argv[]) test_global.log_shm = shm; } - if (start_timers(&test_global)) + ret = start_timers(&test_global); + if (ret) goto quit; run_test(&test_global); |