summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2008-01-09 22:09:19 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2008-01-09 22:09:19 (GMT)
commit8ca65a8b8d601af229b9465930fd9e96a2e51b37 (patch)
tree896456cfc5e83448f53ece5a7fbe392530764929 /test
parenta2bc2894dd52c8066396943306e07b773e3d2360 (diff)
downloadhdf5-8ca65a8b8d601af229b9465930fd9e96a2e51b37.zip
hdf5-8ca65a8b8d601af229b9465930fd9e96a2e51b37.tar.gz
hdf5-8ca65a8b8d601af229b9465930fd9e96a2e51b37.tar.bz2
[svn-r14388] Clean up the code.
Tested on smirom.
Diffstat (limited to 'test')
-rw-r--r--test/tcoords.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/tcoords.c b/test/tcoords.c
index e7ce2f3..42417b6 100644
--- a/test/tcoords.c
+++ b/test/tcoords.c
@@ -45,12 +45,6 @@ static void test_single_end(hid_t file)
/* For testing the full selection in the fastest-growing end */
int mem1_buffer[1][1][6][2];
hsize_t mem1_dims[4] = { 1, 1, 6, 2 };
-#ifdef TMP
- hsize_t mem1_start[4] = { 0, 0, 0, 0 };
- hsize_t mem1_count[4] = { 1, 1, 1, 1 };
- hsize_t mem1_stride[4] = { 1, 1, 1, 1 };
- hsize_t mem1_block[4] = { 1, 1, 6, 2 };
-#else
hsize_t da_elmts1[12][4] = { {0, 0, 0, 0},
{0, 0, 0, 1},
{0, 0, 1, 0},
@@ -63,7 +57,6 @@ static void test_single_end(hid_t file)
{0, 0, 4, 1},
{0, 0, 5, 0},
{0, 0, 5, 1} };
-#endif
/* For testing the full selection in the slowest-growing end */
int mem2_buffer[2][3][1][1];
@@ -118,13 +111,8 @@ static void test_single_end(hid_t file)
CHECK(did, FAIL, "H5Dopen");
/* Select the elements in the dataset */
-#ifdef TMP
- ret = H5Sselect_hyperslab(sid, H5S_SELECT_SET, mem1_start, mem1_stride, mem1_count, mem1_block);
- CHECK(ret, FAIL, "H5Sselect_hyperslab");
-#else
ret = H5Sselect_elements(sid, H5S_SELECT_SET, (const size_t)12, (const hsize_t**)da_elmts1);
CHECK(ret, FAIL, "H5Sselect_elements");
-#endif
msid = H5Screate_simple(4, mem1_dims, mem1_dims);
CHECK(msid, FAIL, "H5Screate_simple");