testbench: return error up the stack.

Dont exit() but return the error up the stack for proper handling.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2022-02-04 17:01:14 +00:00 committed by Liam Girdwood
parent 0cec50a976
commit 9ad987e7fd
1 changed files with 1 additions and 3 deletions

View File

@ -550,10 +550,8 @@ static int test_pipeline_load(struct pipeline_thread_data *ptdata,
/* parse topology file and create pipeline */
ret = parse_topology(ctx);
if (ret < 0) {
if (ret < 0)
fprintf(stderr, "error: parsing topology\n");
exit(EXIT_FAILURE);
}
return ret;
}