test/compress: rework error checks
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Mon, 19 Aug 2019 20:31:47 +0000 (22:31 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commit52d719d86e7b2005987cc8e4b0ff538e19fa57d2
tree6695afa4d639b7199aa239cc1ba58936a2c22c1a
parent23742f21f74a9d8380367c39b8ee4561e6dd1526
test/compress: rework error checks

This patch fixes the return value of the test_deflate_comp_decomp
function on capabilities retrieval error to be -ENOTSUP.

It also fixes passing of the test_deflate_comp_decomp function's
return value to the upper level (as the test suite function return
value).

Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Artur Trybula <arturx.trybula@intel.com>
app/test/test_compressdev.c