test/reduce: fix missing mem free call and add test call to UT script
fixes #2808 Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I546fa29713ccc7daf242e41f2311690a5cf68773 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15753 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
19e2dc3853
commit
7e55f977ff
@ -1531,7 +1531,7 @@ test_prepare_compress_chunk(void)
|
|||||||
memcmp_offset += req.iov[1].iov_len;
|
memcmp_offset += req.iov[1].iov_len;
|
||||||
CU_ASSERT(memcmp(req.decomp_iov[0].iov_base + memcmp_offset, g_zero_buf + memcmp_offset,
|
CU_ASSERT(memcmp(req.decomp_iov[0].iov_base + memcmp_offset, g_zero_buf + memcmp_offset,
|
||||||
remainder_bytes) == 0);
|
remainder_bytes) == 0);
|
||||||
|
backing_dev_destroy(&backing_dev);
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,6 +209,7 @@ fi
|
|||||||
|
|
||||||
if grep -q '#define SPDK_CONFIG_VBDEV_COMPRESS 1' $rootdir/include/spdk/config.h; then
|
if grep -q '#define SPDK_CONFIG_VBDEV_COMPRESS 1' $rootdir/include/spdk/config.h; then
|
||||||
run_test "unittest_bdev_compress" $valgrind $testdir/lib/bdev/compress.c/compress_ut
|
run_test "unittest_bdev_compress" $valgrind $testdir/lib/bdev/compress.c/compress_ut
|
||||||
|
run_test "unittest_lib_reduce" $valgrind $testdir/lib/reduce/reduce.c/reduce_ut
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q '#define SPDK_CONFIG_PMDK 1' $rootdir/include/spdk/config.h; then
|
if grep -q '#define SPDK_CONFIG_PMDK 1' $rootdir/include/spdk/config.h; then
|
||||||
|
Loading…
Reference in New Issue
Block a user