You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: ztest: mux: add regression test for processing with no source #11589
Sub-issue of #10110 (follow-up after the CMocka to ztest migration).
Problem
demux_process() and mux_process() in src/audio/mux/mux.c return early when the module has no active sources or sinks:
/* if there are no sources or sinks active, then there is nothing to do */if (num_of_sources==0||num_of_sinks==0) {
The guard in demux_process() was fixed in #11284 (the old check dereferenced a NULL source array). No unit test exercises this path: every case in the ztest suite test/ztest/unit/audio/mux (mux_copy, demux_copy) creates a source before calling comp_copy(), so a regression of the guard would not be caught.
Activity