X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab92608267358b56adf7a803480fa2ad9608ed1b..f9436b840852218b39dce22d6057b6f223168daa:/src/mc/mc_snapshot.cpp diff --git a/src/mc/mc_snapshot.cpp b/src/mc/mc_snapshot.cpp index 0dff797c92..784f672265 100644 --- a/src/mc/mc_snapshot.cpp +++ b/src/mc/mc_snapshot.cpp @@ -132,7 +132,7 @@ int MC_snapshot_region_memcmp( res = 0; else res = memcmp(buffer1, buffer2, size); - if (!stack_alloc) { + if (not stack_alloc) { free(buffer1a); free(buffer2a); } @@ -260,15 +260,14 @@ static void test_snapshot(bool sparse_checkpoint) { xbt_test_add("Reading whole region data for %i page(s)", n); const void* read = MC_region_read(®ion, destination, source, byte_size); - xbt_test_assert(!memcmp(source, read, byte_size), "Mismatch in MC_region_read()"); + xbt_test_assert(not memcmp(source, read, byte_size), "Mismatch in MC_region_read()"); xbt_test_add("Reading parts of region data for %i page(s)", n); for(int j=0; j!=100; ++j) { size_t offset = rand() % byte_size; size_t size = rand() % (byte_size - offset); const void* read = MC_region_read(®ion, destination, (const char*) source+offset, size); - xbt_test_assert(!memcmp((char*) source+offset, read, size), - "Mismatch in MC_region_read()"); + xbt_test_assert(not memcmp((char*)source + offset, read, size), "Mismatch in MC_region_read()"); } xbt_test_add("Compare whole region data for %i page(s)", n); @@ -280,8 +279,9 @@ static void test_snapshot(bool sparse_checkpoint) { 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, ®ion, (char*) source+offset, ®ion, size), - "Mismatch in MC_snapshot_region_memcmp()"); + xbt_test_assert( + not MC_snapshot_region_memcmp((char*)source + offset, ®ion, (char*)source + offset, ®ion, size), + "Mismatch in MC_snapshot_region_memcmp()"); } if (n==1) {