mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fixup nc_test4/test_filter_misc.c too
This commit is contained in:
parent
458fa0b8c7
commit
cdd97754a9
@ -184,22 +184,22 @@ openfile(void)
|
||||
}
|
||||
if(filterid != TEST_ID) {
|
||||
fprintf(stderr,"open: test id mismatch: %d\n",filterid);
|
||||
free(params);
|
||||
return NC_EFILTER;
|
||||
}
|
||||
if(nparams != NPARAMS) {
|
||||
size_t i;
|
||||
unsigned int inqparams[MAXPARAMS];
|
||||
size_t i;
|
||||
fprintf(stderr,"nparams mismatch\n");
|
||||
for(nerrs=0,i=0;i<nparams;i++) {
|
||||
if(inqparams[i] != baseline[i]) {
|
||||
if(params[i] != baseline[i]) {
|
||||
fprintf(stderr,"open: testparam mismatch: %ld\n",(unsigned long)i);
|
||||
nerrs++;
|
||||
}
|
||||
}
|
||||
nerrs++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(nerrs > 0) return NC_EFILTER;
|
||||
free(params);
|
||||
|
||||
if(params) free(params);
|
||||
if(nerrs > 0) return NC_EFILTER;
|
||||
|
||||
/* Verify chunking */
|
||||
if(!verifychunks())
|
||||
|
Loading…
Reference in New Issue
Block a user