From eb71364bce5dc384c08f62b3da86e8a9bfb4b6f2 Mon Sep 17 00:00:00 2001 From: paul luse Date: Tue, 30 Apr 2019 14:23:48 -0400 Subject: [PATCH] bdev/compress: remove unused test function, test_error_paths() I'm testing the error paths within each function under test, this was here simply because I copy-n-pasted much of the UT framework from crypto to get it jump started. Change-Id: Id7705bcaec87e93b589360e520b330f024d3293d Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452723 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- test/unit/lib/bdev/compress.c/compress_ut.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/unit/lib/bdev/compress.c/compress_ut.c b/test/unit/lib/bdev/compress.c/compress_ut.c index 91c2c52bd..f2874338d 100644 --- a/test/unit/lib/bdev/compress.c/compress_ut.c +++ b/test/unit/lib/bdev/compress.c/compress_ut.c @@ -538,12 +538,6 @@ test_compress_operation(void) CU_ASSERT(rc == 0); } -static void -test_error_paths(void) -{ - -} - static void test_vbdev_compress_submit_request(void) { @@ -625,9 +619,7 @@ main(int argc, char **argv) return CU_get_error(); } - if (CU_add_test(suite, "test_error_paths", - test_error_paths) == NULL || - CU_add_test(suite, "test_compress_operation", + if (CU_add_test(suite, "test_compress_operation", test_compress_operation) == NULL || CU_add_test(suite, "vbdev_compress_submit_request", test_vbdev_compress_submit_request) == NULL ||