- for( j = 0; j < 10; j++ ) {
- MTestPrintfMsg( 0, "%d Sent: %d %c, Got: %d %c\n", rank,
- s[j].i, s[j].c, s1[j].i, s1[j].c );
- if ( s1[j].i != j + status.MPI_SOURCE ) {
- errs++;
- fprintf( stderr, "Got s[%d].i = %d; expected %d\n", j, s1[j].i,
- j + status.MPI_SOURCE );
- }
- if ( s1[j].c != 'a' + j + status.MPI_SOURCE ) {
- errs++;
- /* If the character is not a printing character,
- this can generate a file that diff, for example,
- believes is a binary file */
- if (isprint( (int)(s1[j].c) )) {
- fprintf( stderr, "Got s[%d].c = %c; expected %c\n",
- j, s1[j].c, j + status.MPI_SOURCE + 'a');
- }
- else {
- fprintf( stderr, "Got s[%d].c = %x; expected %c\n",
- j, (int)s1[j].c, j + status.MPI_SOURCE + 'a');
- }
- }
- }
+ for (j = 0; j < 10; j++) {
+ MTestPrintfMsg(0, "%d Sent: %d %c, Got: %d %c\n", rank, s[j].i, s[j].c, s1[j].i, s1[j].c);
+ if (s1[j].i != j + status.MPI_SOURCE) {
+ errs++;
+ fprintf(stderr, "Got s[%d].i = %d; expected %d\n", j, s1[j].i, j + status.MPI_SOURCE);
+ }
+ if (s1[j].c != 'a' + j + status.MPI_SOURCE) {
+ errs++;
+ /* If the character is not a printing character,
+ * this can generate a file that diff, for example,
+ * believes is a binary file */
+ if (isprint((int) (s1[j].c))) {
+ fprintf(stderr, "Got s[%d].c = %c; expected %c\n", j, s1[j].c, j + status.MPI_SOURCE + 'a');
+ }
+ else {
+ fprintf(stderr, "Got s[%d].c = %hhx; expected %c\n", j, s1[j].c, j + status.MPI_SOURCE + 'a');
+ }
+ }
+ }