From a780719ff47ec2ea890ab5ecf00ab014393ca8f2 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 5 Jun 2001 17:59:47 -0500 Subject: [svn-r3962] Purpose: Code cleanup Description: Incremented error count when error conditions occur. Platforms tested: FreeBSD 4.3 (hawkwind) --- test/tselect.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test/tselect.c b/test/tselect.c index 1df0fbe..64fd69e 100644 --- a/test/tselect.c +++ b/test/tselect.c @@ -799,6 +799,7 @@ test_select_combo(void) tbuf=wbuf+i; tbuf2=rbuf+(i*SPACE3_DIM2); if(*tbuf!=*tbuf2) { + num_errs++; printf("element values don't match!, i=%d\n",i); } /* end if */ } /* end for */ @@ -964,8 +965,9 @@ test_select_hyper_stride(void) printf("%d: hyperslab values don't match!, loc1[%d]=%d, loc2[%d]=%d\n",__LINE__,i,(int)loc1[i],i,(int)loc2[i]); #ifndef QAK printf("wbuf=%p, tbuf=%p, rbuf=%p, tbuf2=%p\n",wbuf,tbuf,rbuf,tbuf2); - printf("*tbuf=%d, *tbuf2=%d\n",(int)*tbuf,(int)*tbuf2); + printf("*tbuf=%u, *tbuf2=%u\n",(unsigned)*tbuf,(unsigned)*tbuf2); #endif /* QAK */ + num_errs++; } /* end if */ } /* end for */ @@ -1091,6 +1093,7 @@ test_select_hyper_contig(void) /* Compare data read with data written out */ if(HDmemcmp(rbuf,wbuf,sizeof(uint16_t)*30*12)) { printf("hyperslab values don't match!\n"); + num_errs++; #ifdef QAK for(i=0, tbuf=wbuf; i<12; i++) for(j=0; j<30; j++) @@ -1239,6 +1242,7 @@ test_select_hyper_copy(void) /* Compare data read with data written out */ if(HDmemcmp(rbuf,rbuf2,sizeof(uint16_t)*SPACE3_DIM1*SPACE3_DIM2)) { printf("hyperslab values don't match!\n"); + num_errs++; } /* end if */ /* Close memory dataspace */ @@ -1407,7 +1411,8 @@ test_select_point_copy(void) /* Compare data read with data written out */ if(HDmemcmp(rbuf,rbuf2,sizeof(uint16_t)*SPACE3_DIM1*SPACE3_DIM2)) { - printf("hyperslab values don't match!\n"); + printf("point values don't match!\n"); + num_errs++; } /* end if */ /* Close memory dataspace */ @@ -1576,6 +1581,7 @@ test_select_hyper_offset(void) for(j=0; j