diff options
Diffstat (limited to 'helper/test/linux/process.c')
-rw-r--r-- | helper/test/linux/process.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/helper/test/linux/process.c b/helper/test/linux/process.c index f57b5ab8a..8d3f31af0 100644 --- a/helper/test/linux/process.c +++ b/helper/test/linux/process.c @@ -82,10 +82,20 @@ int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) if (ret == 0) { /* Child process */ worker_fn(NULL); + + if (odp_term_local() < 0) { + ODPH_ERR("Error: ODP local term failed.\n"); + exit(EXIT_FAILURE); + } } else { /* Parent process */ odph_linux_process_wait_n(proc, num_workers); + if (odp_term_local()) { + ODPH_ERR("Error: ODP local term failed.\n"); + exit(EXIT_FAILURE); + } + if (odp_term_global(instance)) { ODPH_ERR("Error: ODP global term failed.\n"); exit(EXIT_FAILURE); |