Testbench: Add pipeline trigger stop to test end

This patch adds the missing call to end of test run. It prevents
the pipeline reset to print error traces about illegal state
change.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2020-01-31 16:42:54 +02:00 committed by Liam Girdwood
parent 71d9dbe62b
commit 5b89f29445
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ int main(int argc, char **argv)
/* reset and free pipeline */
toc = clock();
tb_enable_trace(true);
pipeline_trigger(p, cd, COMP_TRIGGER_STOP);
ret = pipeline_reset(p, cd);
if (ret < 0) {
fprintf(stderr, "error: pipeline reset\n");