X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2a2a7f852061b03a320de8f8febadf7adbca1889..7db4d75e5804aac4f85c4b83c650552b25091c3e:/examples/smpi/ampi_test/ampi_test.cpp diff --git a/examples/smpi/ampi_test/ampi_test.cpp b/examples/smpi/ampi_test/ampi_test.cpp index 78d132a066..bc02cadd84 100644 --- a/examples/smpi/ampi_test/ampi_test.cpp +++ b/examples/smpi/ampi_test/ampi_test.cpp @@ -10,9 +10,12 @@ int main(int argc, char* argv[]) { MPI_Init(&argc, &argv); + // useless alocations for testing and coverage void* pointer = malloc(100 * sizeof(int)); + pointer = realloc(pointer, 50 * sizeof(int)); + pointer = realloc(pointer, 200 * sizeof(int)); free(pointer); - pointer = malloc(100 * sizeof(int)); + pointer = calloc(100, sizeof(int)); int rank; int err = MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* Get id of this process */ if (err != MPI_SUCCESS) {