From f1576d0473bb9c132bff94a4f344dd70475a1c98 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Fri, 29 May 2015 11:32:11 +0200 Subject: [PATCH] [mc] Remove broken test We don't handle NULL as a valid/special region anymore. --- src/mc/mc_snapshot.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/mc/mc_snapshot.cpp b/src/mc/mc_snapshot.cpp index f72b64ddb1..46c0a4692f 100644 --- a/src/mc/mc_snapshot.cpp +++ b/src/mc/mc_snapshot.cpp @@ -281,19 +281,10 @@ static void test_snapshot(bool sparse_checkpoint) { } xbt_test_add("Compare whole region data for %i page(s)", n); - xbt_test_assert(!MC_snapshot_region_memcmp(source, NULL, source, region, byte_size), - "Mismatch in MC_snapshot_region_memcmp() for the whole region"); + xbt_test_assert(MC_snapshot_region_memcmp(source, region0, source, region, byte_size), "Unexpected match in MC_snapshot_region_memcmp() with previous snapshot"); - xbt_test_add("Compare parts of region data for %i page(s) with current value", n); - for(int j=0; j!=100; ++j) { - size_t offset = rand() % byte_size; - size_t size = rand() % (byte_size - offset); - xbt_test_assert(!MC_snapshot_region_memcmp((char*) source+offset, NULL, (char*) source+offset, region, size), - "Mismatch in MC_snapshot_region_memcmp()"); - } - xbt_test_add("Compare parts of region data for %i page(s) with itself", n); for(int j=0; j!=100; ++j) { size_t offset = rand() % byte_size; -- 2.20.1