From 8da8cf8c4cf963f23e275af94a4bd11305a505eb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 29 May 2013 18:03:45 +0200 Subject: [PATCH] Fix block limit tests The tests currently verify whether two block limits are above 2**20. Change these tests into <= 2**20. Signed-off-by: Bart Van Assche --- test-tool/test_inquiry_block_limits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-tool/test_inquiry_block_limits.c b/test-tool/test_inquiry_block_limits.c index 95345cb..d298c37 100644 --- a/test-tool/test_inquiry_block_limits.c +++ b/test-tool/test_inquiry_block_limits.c @@ -134,7 +134,7 @@ test_inquiry_block_limits(void) if (bl->max_unmap != 0xffffffff) { logging(LOG_VERBOSE, "Verify that MAXIMUM UNMAP LBA " "COUNT is not insanely big"); - CU_ASSERT_EQUAL(bl->max_unmap <= 1024*1024, 0); + CU_ASSERT_TRUE(bl->max_unmap <= 1024*1024); } logging(LOG_VERBOSE, "Verify that MAXIMUM UNMAP BLOCK " @@ -143,7 +143,7 @@ test_inquiry_block_limits(void) if (bl->max_unmap_bdc != 0xffffffff) { logging(LOG_VERBOSE, "Verify that MAXIMUM UNMAP " "BLOCK DESCRIPTOR COUNT is not insanely big"); - CU_ASSERT_EQUAL(bl->max_unmap_bdc <= 1024*1024, 0); + CU_ASSERT_TRUE(bl->max_unmap_bdc <= 1024*1024); } } else { logging(LOG_VERBOSE, "Device does not claim UNMAP support via "