summaryrefslogtreecommitdiffstats
path: root/test/ttime.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /test/ttime.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test/ttime.c')
-rw-r--r--test/ttime.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/ttime.c b/test/ttime.c
index 5f9b5e7..2578d6b 100644
--- a/test/ttime.c
+++ b/test/ttime.c
@@ -44,7 +44,7 @@ test_time_commit(void)
/* Create a new file using default properties. */
file_id = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
CHECK(file_id, FAIL, "H5Fcreate");
-
+
tid = H5Tcopy (H5T_UNIX_D32LE);
CHECK(tid, FAIL, "H5Tcopy");
status = H5Tcommit(file_id, "Committed D32LE type", tid);
@@ -72,53 +72,53 @@ test_time_commit(void)
CHECK(status, FAIL, "H5Tcommit");
status = H5Tclose (tid);
CHECK(status, FAIL, "H5Tclose");
-
+
/* Close the file. */
status = H5Fclose(file_id);
CHECK(status, FAIL, "H5Fclose");
-
+
file_id = H5Fopen(DATAFILE, H5F_ACC_RDWR, H5P_DEFAULT);
CHECK(file_id, FAIL, "H5Fopen");
-
+
tid = H5Topen(file_id, "Committed D32LE type");
CHECK(tid, FAIL, "H5Topen");
-
+
if(!H5Tequal(tid, H5T_UNIX_D32LE))
TestErrPrintf("H5T_UNIX_D32LE datatype not found\n");
-
+
status = H5Tclose (tid);
CHECK(status, FAIL, "H5Tclose");
tid = H5Topen(file_id, "Committed D32BE type");
CHECK(tid, FAIL, "H5Topen");
-
+
if(!H5Tequal(tid, H5T_UNIX_D32BE))
TestErrPrintf("H5T_UNIX_D32BE datatype not found\n");
-
+
status = H5Tclose (tid);
CHECK(status, FAIL, "H5Tclose");
tid = H5Topen(file_id, "Committed D64LE type");
CHECK(tid, FAIL, "H5Topen");
-
+
if(!H5Tequal(tid, H5T_UNIX_D64LE))
TestErrPrintf("H5T_UNIX_D64LE datatype not found");
-
+
status = H5Tclose (tid);
CHECK(status, FAIL, "H5Tclose");
tid = H5Topen(file_id, "Committed D64BE type");
CHECK(tid, FAIL, "H5Topen");
-
+
if(!H5Tequal(tid, H5T_UNIX_D64BE))
TestErrPrintf("H5T_UNIX_D64BE datatype not found");
-
+
status = H5Tclose (tid);
CHECK(status, FAIL, "H5Tclose");
status = H5Fclose(file_id);
CHECK(status, FAIL, "H5Fclose");
-
+
}
#ifdef NOT_YET
@@ -143,7 +143,7 @@ test_time_io(void)
/* Create a new file using default properties. */
fid = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
CHECK(fid, FAIL, "H5Fcreate");
-
+
/* Create a scalar dataspace */
sid = H5Screate(H5S_SCALAR);
CHECK(sid, FAIL, "H5Screate");
@@ -192,16 +192,16 @@ fprintf(stderr,"time written was: %s\n", HDctime(&timethen));
status = H5Fclose(fid);
CHECK(status, FAIL, "H5Fclose");
-
+
}
#endif /* NOT_YET */
/****************************************************************
**
** test_time(): Main time datatype testing routine.
-**
+**
****************************************************************/
-void
+void
test_time(void)
{
/* Output message about test being performed */
@@ -211,7 +211,7 @@ test_time(void)
#ifdef NOT_YET
test_time_io(); /* Test writing time data to a dataset */
#endif /* NOT_YET */
-
+
} /* test_time() */