Tools: Test: Timeout src_test.m after 300k copy() iterations

This prevents testbench run freeze from src_test.m. Function
test_run_src() passes to testbench option -C that limits the number
iterations to 300k that corresponds to 5 min of audio.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2022-11-29 15:56:12 +02:00 committed by Liam Girdwood
parent e627c7994f
commit 155137b878
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ end
function test = test_run_src(test, t)
test.fs_in = test.fs1;
test.fs_out = test.fs2;
test.extra_opts = '-C 300000'; % Limit to 5 min max, assume 1 ms scheduling
delete_check(1, test.fn_out);
test = test_run(test);
end