From 7e55f977ff51d392c545a1c7ee0363b89c0e7072 Mon Sep 17 00:00:00 2001 From: paul luse Date: Thu, 1 Dec 2022 14:45:47 -0700 Subject: [PATCH] test/reduce: fix missing mem free call and add test call to UT script fixes #2808 Signed-off-by: paul luse Change-Id: I546fa29713ccc7daf242e41f2311690a5cf68773 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15753 Tested-by: SPDK CI Jenkins Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- test/unit/lib/reduce/reduce.c/reduce_ut.c | 2 +- test/unit/unittest.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/lib/reduce/reduce.c/reduce_ut.c b/test/unit/lib/reduce/reduce.c/reduce_ut.c index 61c476212..5a94cd636 100644 --- a/test/unit/lib/reduce/reduce.c/reduce_ut.c +++ b/test/unit/lib/reduce/reduce.c/reduce_ut.c @@ -1531,7 +1531,7 @@ test_prepare_compress_chunk(void) memcmp_offset += req.iov[1].iov_len; CU_ASSERT(memcmp(req.decomp_iov[0].iov_base + memcmp_offset, g_zero_buf + memcmp_offset, remainder_bytes) == 0); - + backing_dev_destroy(&backing_dev); free(buf); } diff --git a/test/unit/unittest.sh b/test/unit/unittest.sh index dcdbbaa2d..664f150ab 100755 --- a/test/unit/unittest.sh +++ b/test/unit/unittest.sh @@ -209,6 +209,7 @@ fi 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_lib_reduce" $valgrind $testdir/lib/reduce/reduce.c/reduce_ut fi if grep -q '#define SPDK_CONFIG_PMDK 1' $rootdir/include/spdk/config.h; then