Skip to content

Commit f9cf6d7

Browse files
committed
Tools: Test: In src_test.m prevent error with empty plot handle
Octave errors if plot handle is empty, Matlab doesn't. This can happen if frequency response test data read fails. In that case an empty plot window is stored as indication of error. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent f1f95dc commit f9cf6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test/audio/src_test.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465

466466
function src_test_result_print(t, testverbose, testacronym, ph)
467467
tstr = sprintf('%s SRC %d, %d', testverbose, t.fs1, t.fs2);
468-
if nargin > 3
468+
if nargin > 3 && ~isempty(ph)
469469
title(ph, tstr);
470470
else
471471
title(tstr);

0 commit comments

Comments
 (0)