diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-29 22:02:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-29 22:02:25 (GMT) |
commit | 8746367121f9765bc093fb73319afbc415e05d2c (patch) | |
tree | b393fe1f0f6b2978d14a16f5ec9bbed450d4d589 /hl | |
parent | e3101ecc4674224d442d8308c53cccf569ef0007 (diff) | |
download | hdf5-8746367121f9765bc093fb73319afbc415e05d2c.zip hdf5-8746367121f9765bc093fb73319afbc415e05d2c.tar.gz hdf5-8746367121f9765bc093fb73319afbc415e05d2c.tar.bz2 |
[svn-r17556] Description:
Correct compile warnings and rename fiels to match the rest of the
test files in this directory.
Note: this is currently failing for srcdir builds!
Tested on:
FreeBSD/32 6.3 (duty)
Diffstat (limited to 'hl')
-rw-r--r-- | hl/test/test_ds.c | 24 | ||||
-rw-r--r-- | hl/test/test_ds_be.h5 (renamed from hl/test/test_dsBE.h5) | bin | 11024 -> 11024 bytes | |||
-rw-r--r-- | hl/test/test_ds_le.h5 (renamed from hl/test/test_dsLE.h5) | bin | 14304 -> 14304 bytes |
3 files changed, 4 insertions, 20 deletions
diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c index df6915a..3ad5fa9 100644 --- a/hl/test/test_ds.c +++ b/hl/test/test_ds.c @@ -125,8 +125,8 @@ static int read_data( const char* fname, int ndims, hsize_t *dims, float **buf ) #define DIM0_LABEL "Latitude" #define DIM1_LABEL "Longitude" -#define FOREIGN_FILE1 "test_dsLE.h5" -#define FOREIGN_FILE2 "test_dsBE.h5" +#define FOREIGN_FILE1 "test_ds_le.h5" +#define FOREIGN_FILE2 "test_ds_be.h5" #define FILENAME "test_ds" #define FILEEXT ".h5" @@ -245,14 +245,8 @@ herr_t create_char_dataset(hid_t fid, const char *dsidx) hsize_t s2_dim[1] = {DIM2_SIZE}; hsize_t s3_dim[1] = {DIM3_SIZE}; char s1_wbuf[DIM1_SIZE] = {1,2,3}; - char s11_wbuf[DIM1_SIZE] = {10,20,30}; char s2_wbuf[DIM2_SIZE] = {10,20,30,40}; - char s21_wbuf[DIM2_SIZE] = {1,2,3,4}; - char s22_wbuf[DIM2_SIZE] = {5,10,50,100}; char s3_wbuf[DIM3_SIZE] = {10,10,10,20,20,20,30,30,30,40,40,40}; - char s31_wbuf[DIM3_SIZE] = {1,1,1,2,2,2,3,3,3,4,4,4}; - char s32_wbuf[DIM3_SIZE] = {5,5,5,10,10,10,50,50,50,100,100,100}; - char s33_wbuf[DIM3_SIZE] = {6,6,6,12,12,12,53,53,53,120,120,120}; char name[32]; strcpy(name, DATASET_NAME); @@ -276,7 +270,7 @@ herr_t create_char_dataset(hid_t fid, const char *dsidx) return SUCCEED; } -herr_t create_short_dataset(hid_t fid, const char *dsidx) +static herr_t create_short_dataset(hid_t fid, const char *dsidx) { int rank = 3; int rankds = 1; @@ -366,19 +360,9 @@ herr_t create_long_dataset(hid_t fid, const char *dsname, const char *dsidx) hsize_t s3_dim[1] = {DIM3_SIZE}; hsize_t s4_dim[1] = {DIM4_SIZE}; long s1_wbuf[DIM1_SIZE] = {10,20,30}; - long s11_wbuf[DIM1_SIZE] = {10,100,300}; long s2_wbuf[DIM2_SIZE] = {100,200,300,400}; - long s21_wbuf[DIM2_SIZE] = {10,20,30,40}; - long s22_wbuf[DIM2_SIZE] = {5,10,50,300}; long s3_wbuf[DIM3_SIZE] = {10,10,10,20,20,20,30,30,30,40,40,40}; - long s31_wbuf[DIM3_SIZE] = {1,1,1,2,2,2,3,3,3,4,4,4}; - long s32_wbuf[DIM3_SIZE] = {5,5,5,10,10,10,50,50,50,100,100,100}; - long s33_wbuf[DIM3_SIZE] = {6,6,6,12,12,12,53,53,53,140,140,140}; long s4_wbuf[DIM4_SIZE] = {18,18}; - long s41_wbuf[DIM4_SIZE] = {8,8}; - long s42_wbuf[DIM4_SIZE] = {80,80}; - long s43_wbuf[DIM4_SIZE] = {180,180}; - long s44_wbuf[DIM4_SIZE] = {280,280}; char name[32]; strcpy(name, dsname); @@ -2127,7 +2111,7 @@ out: return FAIL; } -static int test_simple() +static int test_simple(void) { hid_t fid = -1; hid_t did = -1; diff --git a/hl/test/test_dsBE.h5 b/hl/test/test_ds_be.h5 Binary files differindex 3da54f9..3da54f9 100644 --- a/hl/test/test_dsBE.h5 +++ b/hl/test/test_ds_be.h5 diff --git a/hl/test/test_dsLE.h5 b/hl/test/test_ds_le.h5 Binary files differindex 1fcbe99..1fcbe99 100644 --- a/hl/test/test_dsLE.h5 +++ b/hl/test/test_ds_le.h5 |