summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/dsets.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 8cdb5bf..d996211 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -2826,14 +2826,21 @@ file)
}
/* Create new dataset */
- /* (Should fail because the 'can apply' filter should indicate inappropriate combination) */
+ /* (Should succeed; according to the new algorithm, scanline should be reset
+ to 2*128 satisfying 'maximum blocks per scanline' condition) */
H5E_BEGIN_TRY {
dsid = H5Dcreate(file, DSET_CAN_APPLY_SZIP_NAME, H5T_NATIVE_INT, sid, dcpl);
} H5E_END_TRY;
- if (dsid >=0) {
+ if (dsid <=0) {
H5_FAILED();
- printf(" Line %d: Shouldn't have created dataset!\n",__LINE__);
- H5Dclose(dsid);
+ printf(" Line %d: Should have created dataset!\n",__LINE__);
+ goto error;
+ } /* end if */
+
+ /* Close dataset */
+ if(H5Dclose(dsid)<0) {
+ H5_FAILED();
+ printf(" Line %d: Can't close dataset\n",__LINE__);
goto error;
} /* end if */