From 7658e5f0a5f35160bcc994780351e1849abbc03c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 10 May 2017 10:13:07 -0700 Subject: [PATCH] test_extended_copy_simple: Fix buffer comparison code Compare the buffers in their entirety instead of only a prefix of the buffers. Signed-off-by: Bart Van Assche --- test-tool/test_extendedcopy_simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tool/test_extendedcopy_simple.c b/test-tool/test_extendedcopy_simple.c index 79c4862..872b017 100644 --- a/test-tool/test_extendedcopy_simple.c +++ b/test-tool/test_extendedcopy_simple.c @@ -75,7 +75,7 @@ test_extendedcopy_simple(void) block_size, 0, 0, 0, 0, 0, buf2, EXPECT_STATUS_GOOD); - if (memcmp(buf1, buf2, 2048)) { + if (memcmp(buf1, buf2, 2048*block_size)) { CU_FAIL("Blocks were not copied correctly"); }