- while (MTestGetWin( &win, 1 )) {
- if (win == MPI_WIN_NULL) continue;
-
- sprintf( name, "win-%d", cnt );
- cnt++;
- MPI_Win_set_name( win, name );
- nameout[0] = 0;
- MPI_Win_get_name( win, nameout, &namelen );
- if (strcmp( name, nameout )) {
- errs++;
- printf( "Unexpected name, was %s but should be %s\n",
- nameout, name );
- }
+ while (MTestGetWin(&win, 1)) {
+ if (win == MPI_WIN_NULL)
+ continue;