mirror of https://github.com/thesofproject/sof.git
adf8d66caf
To help catching overflows this patch exercises the volume component test with larger absolute value test data, both positive and negative numbers. A test generator is added for S24_4LE format. Since the reference float arithmetic sometimes calculates the sample with less accuracy than fixed point firmware code the error is asserted when delta of reference and firmware is larger than one LSB. The float code is off by one sometimes with negative samples. To not complicate the test code this simple relaxation is proposed. The table of test inputs is commented with numbers to help to quickly find a failing test case function if such happens from printed output from cmocka test run. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> |
||
---|---|---|
.. | ||
cmocka | ||
CMakeLists.txt |