From 5b89f2944550aaa4e8f29377386fddae5e9e4112 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 31 Jan 2020 16:42:54 +0200 Subject: [PATCH] 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 --- tools/testbench/testbench.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testbench/testbench.c b/tools/testbench/testbench.c index 0b343c211..0327e931b 100644 --- a/tools/testbench/testbench.c +++ b/tools/testbench/testbench.c @@ -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");