diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-01-27 21:11:32 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-01-27 21:11:32 (GMT) |
commit | a49ca01622e4cbcf4290c36699c807d4b35e89d1 (patch) | |
tree | 9d5449c84bd4f78c4eb6b31da94ab840a3b17a4c /test/dsets.c | |
parent | 6b2d17d4bba013f6dca151334ff951424090c67e (diff) | |
download | hdf5-a49ca01622e4cbcf4290c36699c807d4b35e89d1.zip hdf5-a49ca01622e4cbcf4290c36699c807d4b35e89d1.tar.gz hdf5-a49ca01622e4cbcf4290c36699c807d4b35e89d1.tar.bz2 |
[svn-r174] Switched calls from H5Pcreate to H5Pcreate_simple
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/dsets.c b/test/dsets.c index 1d88cff..51c5b41 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -51,11 +51,10 @@ test_create(hid_t file) printf("%-70s", "Testing create/open/close"); /* Create the data space */ - space = H5Pcreate(H5P_SIMPLE); dims[0] = 256; dims[1] = 512; - status = H5Pset_space(space, 2, dims); - assert(status >= 0); + space = H5Pcreate_simple(2,dims); + assert(space != FAIL); /* * Create a dataset using the default dataset creation properties. We're @@ -204,11 +203,10 @@ test_simple_io(hid_t file) } /* Create the data space */ - space = H5Pcreate(H5P_SIMPLE); dims[0] = 100; dims[1] = 200; - status = H5Pset_space(space, 2, dims); - assert(status >= 0); + space = H5Pcreate_simple(2,dims); + assert(space != FAIL); /* Create the dataset */ dataset = H5Dcreate(file, DSET_SIMPLE_IO_NAME, H5T_NATIVE_INT, space, @@ -294,11 +292,9 @@ test_tconv(hid_t file) ((int32 *) out)[i] = 0x11223344; /* Create the data space */ - space = H5Pcreate(H5P_SIMPLE); - assert(space >= 0); dims[0] = 1000000; - status = H5Pset_space(space, 1, dims); - assert(status >= 0); + space = H5Pcreate_simple(1,dims); + assert(space != FAIL); /* Create the data set */ dataset = H5Dcreate(file, DSET_TCONV_NAME, H5T_NATIVE_INT32, space, |