Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix parameter order in unit test of mc_snapshot
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 7 May 2015 08:30:53 +0000 (10:30 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 7 May 2015 08:31:05 +0000 (10:31 +0200)
src/mc/mc_snapshot.cpp

index f1a1c66..b752c9c 100644 (file)
@@ -234,7 +234,7 @@ static void test_snapshot(bool sparse_checkpoint) {
     xbt_assert(source!=MAP_FAILED, "Could not allocate destination memory");
 
     xbt_test_add("Reading whole region data for %i page(s)", n);
     xbt_assert(source!=MAP_FAILED, "Could not allocate destination memory");
 
     xbt_test_add("Reading whole region data for %i page(s)", n);
-    const void* read = MC_region_read(region, source, destination, byte_size);
+    const void* read = MC_region_read(region, destination, source, byte_size);
     xbt_test_assert(!memcmp(source, read, byte_size), "Mismatch in MC_region_read()");
 
     xbt_test_add("Reading parts of region data for %i page(s)", n);
     xbt_test_assert(!memcmp(source, read, byte_size), "Mismatch in MC_region_read()");
 
     xbt_test_add("Reading parts of region data for %i page(s)", n);