summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-06-15 20:21:53 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-06-15 20:21:53 (GMT)
commit1954e67901fd7adbebc078e77663a75f43e4f0f2 (patch)
tree2e487d0d9cd6a90bb69d21a3de1cd0b9bcbbaf94 /tools/lib
parenta4ac9b04e4a5785a18387583cd8aeba41b25e300 (diff)
downloadhdf5-1954e67901fd7adbebc078e77663a75f43e4f0f2.zip
hdf5-1954e67901fd7adbebc078e77663a75f43e4f0f2.tar.gz
hdf5-1954e67901fd7adbebc078e77663a75f43e4f0f2.tar.bz2
[svn-r17054] merge 17052 from trunk
Add a run to the h5repack shell script to read a family file The file used for input is located in the common source tools for testfiles, in tools/testfiles Modified the h5repack shell script to read files from this location (h5repack reads its input files from a dedicated testfiles location in h5repack/testfiles) Changed the h5diff open file call to use h5tools_fopen, so that it can open all file drivers Tested: linux
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5diff.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 7456f9a..071acdc 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -16,6 +16,8 @@
#include <stdlib.h>
#include "h5diff.h"
#include "H5private.h"
+#include "h5tools.h"
+#include "h5tools_utils.h"
/*-------------------------------------------------------------------------
@@ -90,19 +92,24 @@ hsize_t h5diff(const char *fname1,
/* disable error reporting */
H5E_BEGIN_TRY
{
- /* open the files */
- if((file1_id = H5Fopen(fname1, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0)
+ /* open file 1 */
+
+ if((file1_id = h5tools_fopen(fname1, NULL, NULL, 0)) < 0)
{
printf("h5diff: <%s>: unable to open file\n", fname1 );
options->err_stat = 1;
goto out;
- } /* end if */
- if((file2_id = H5Fopen(fname2, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0)
+ }
+
+ /* open file 2 */
+
+ if((file2_id = h5tools_fopen(fname2, NULL, NULL, 0)) < 0)
{
printf("h5diff: <%s>: unable to open file\n", fname2 );
options->err_stat = 1;
goto out;
- } /* end if */
+ }
+
/* enable error reporting */
} H5E_END_TRY;