X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b79da01a63a9ec59158c97c2fb9b0108a91be00d..bf667234dc6219eb5ee398d5dca36a3a16ec340f:/src/mc/test/compare_snapshot.c diff --git a/src/mc/test/compare_snapshot.c b/src/mc/test/compare_snapshot.c index b97a629832..d8ad53be3a 100644 --- a/src/mc/test/compare_snapshot.c +++ b/src/mc/test/compare_snapshot.c @@ -49,8 +49,9 @@ static void test2() MC_UNSET_RAW_MEM; - char* t = malloc(5); - + char* t = malloc(50); + t = strdup("toto"); + MC_SET_RAW_MEM; /* Save second snapshot */ @@ -88,6 +89,7 @@ static void test3() MC_UNSET_RAW_MEM; char *t = malloc(5); + t = strdup("toto"); free(t); MC_SET_RAW_MEM; @@ -117,6 +119,7 @@ static void test4() fprintf(stderr, "\n**************** TEST 4 ****************\n\n"); char *t = malloc(5); + t = strdup("toto"); MC_SET_RAW_MEM; @@ -237,6 +240,9 @@ void MC_test_snapshot_comparison(){ MC_take_snapshot_liveness(initial); MC_UNSET_RAW_MEM; + /* Get .plt section (start and end addresses) for data libsimgrid comparison */ + get_plt_section(); + test1(); MC_restore_snapshot(initial);