summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2004-06-30 19:12:22 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2004-06-30 19:12:22 (GMT)
commit10834e1e8f3dee6f863d655d4eddf0c824a94fd6 (patch)
treed474b2499576a64b9814f36705a3afbcde17c9a5 /test
parent822af258c70d179058b402e9955d07eee3527f5a (diff)
downloadhdf5-10834e1e8f3dee6f863d655d4eddf0c824a94fd6.zip
hdf5-10834e1e8f3dee6f863d655d4eddf0c824a94fd6.tar.gz
hdf5-10834e1e8f3dee6f863d655d4eddf0c824a94fd6.tar.bz2
[svn-r8775]
Purpose: Fixed a bug that broke daily tests. SZIP now always uses K13 compression. Description: When configured with the --srcdir option, dsets test would look for a test file in the same directory as the test, instead of in the directory that contains the source files. SZIP never needs to use CHIP compression, so the option to set this flag instead of K13 compression has been removed. Platforms tested: Copper
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/dsets.c b/test/dsets.c
index ee9194b..09587f5 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -1649,8 +1649,19 @@ test_filter_noencoder(const char *dset_name)
int test_ints[10] = { 12 };
int read_buf[10];
int i;
+ char * srcdir = HDgetenv("srcdir"); /* The source directory */
+ char testfile[512]=""; /* Buffer to hold name of test file */
+
+ /* Create the name of the file to open (in case we are using the --srcdir
+ * option. */
+ if (srcdir && ((HDstrlen(srcdir) + HDstrlen(NOENCODER_FILENAME) + 1) < sizeof(testfile)) )
+ {
+ HDstrcpy(testfile, srcdir);
+ HDstrcat(testfile, "/");
+ }
+ HDstrcat(testfile, NOENCODER_FILENAME);
- file_id = H5Fopen(NOENCODER_FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
+ file_id = H5Fopen(testfile, H5F_ACC_RDWR, H5P_DEFAULT);
if (file_id < 0) goto error;
dset_id = H5Dopen(file_id, dset_name);