X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a882344bc908a258a991701e226556ec23fd7cd6..9afa0d0db01da2ae64e48fb594cc87c186dde192:/teshsuite/smpi/MBI/RMAInvalidArgGenerator.py diff --git a/teshsuite/smpi/MBI/RMAInvalidArgGenerator.py b/teshsuite/smpi/MBI/RMAInvalidArgGenerator.py index afe656c3c7..2ba7cf9add 100755 --- a/teshsuite/smpi/MBI/RMAInvalidArgGenerator.py +++ b/teshsuite/smpi/MBI/RMAInvalidArgGenerator.py @@ -40,7 +40,7 @@ END_MBI_TESTS int main(int argc, char **argv) { int nprocs = -1 , rank = -1; MPI_Win win; - int *winbuf = @{malloc}@ // Window buffer + int *winbuf = (int *)@{malloc}@ // Window buffer MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &nprocs); @@ -104,7 +104,7 @@ for e in gen.epoch: # replace['shortdesc'] = 'nullptr is invalid in one-sided operation.' # replace['longdesc'] = 'A one-sided operation has an invalid buffer.' # replace['outcome'] = 'ERROR: InvalidBuffer' - # replace['init'] = 'int * localbuf1 = malloc(sizeof(int));' + # replace['init'] = 'int * localbuf1 = (int *)malloc(sizeof(int));' # replace['change_arg'] = 'localbuf1 = NULL;' # replace['operation'] = gen.operation[p]("1").replace('&localbuf1', 'localbuf1') # replace['errormsg'] = '@{p}@ at @{filename}@:@{line:MBIERROR}@ has an invalid buffer'