summaryrefslogtreecommitdiffstats
path: root/fortran/test/t.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-05-14 00:43:58 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-05-14 00:43:58 (GMT)
commit0742585e9aaacf513a5ab44da5e4755c9c0c5d60 (patch)
tree43caca4f46fcf3e434db97b376f265ee0f039a18 /fortran/test/t.c
parent916399d31ed063c0d7e8b7aba864841168a37b93 (diff)
downloadhdf5-0742585e9aaacf513a5ab44da5e4755c9c0c5d60.zip
hdf5-0742585e9aaacf513a5ab44da5e4755c9c0c5d60.tar.gz
hdf5-0742585e9aaacf513a5ab44da5e4755c9c0c5d60.tar.bz2
[svn-r12347] Purpose: Maintenance/bug fix
Description: When --enable-group-revision flag was used, h5fget_filesize_f function returned different value from expected one. Test failed with false negative result. Solution: Added Fortran function h5_group_revision_f and its C stub to check if macro H5_GROUP_REVISION is defined. Expected value from h5fget_filesize_f is set up accordingly. Platforms tested: copper, shanti and heping with and without --enable-group-revision configuration flag Misc. update:
Diffstat (limited to 'fortran/test/t.c')
-rw-r--r--fortran/test/t.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/fortran/test/t.c b/fortran/test/t.c
index cb71fd2..9eede1a 100644
--- a/fortran/test/t.c
+++ b/fortran/test/t.c
@@ -128,3 +128,22 @@ nh5_exit_c(int_f *status)
HDexit((int)*status);
} /* h5_exit_c */
+
+/*----------------------------------------------------------------------------
+ * Name: h5_group_revision_c
+ * Purpose: Checks if H5_GROUP_REVISION variable defined
+ * Inputs:
+ * Returns: 1 if defines, 0 otherwise
+ * Programmer: Elena Pourmal
+ * Saturday, May 13, 2006
+ * Modifications:
+ *---------------------------------------------------------------------------*/
+int_f
+nh5_group_revision_c()
+{
+ int_f ret =0;
+#ifdef H5_GROUP_REVISION
+ ret = 1;
+#endif
+ return ret;
+} /* h5_group_revision_c */