diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-05-05 20:34:04 (GMT) |
---|---|---|
committer | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-05-05 22:24:11 (GMT) |
commit | 5d7682c6b5150bc6918d2d22d77fde886b223d0d (patch) | |
tree | 37b688bd1c215a558e0e38a78f1ef07a09b06581 /testpar/API | |
parent | c754dc9591d0924f9848268ea76dddf49c6834fe (diff) | |
download | hdf5-5d7682c6b5150bc6918d2d22d77fde886b223d0d.zip hdf5-5d7682c6b5150bc6918d2d22d77fde886b223d0d.tar.gz hdf5-5d7682c6b5150bc6918d2d22d77fde886b223d0d.tar.bz2 |
Fix some compile failures in API tests (#2913)
Diffstat (limited to 'testpar/API')
-rw-r--r-- | testpar/API/t_dset.c | 13 | ||||
-rw-r--r-- | testpar/API/t_filter_read.c | 13 | ||||
-rw-r--r-- | testpar/API/t_shapesame.c | 10 |
3 files changed, 4 insertions, 32 deletions
diff --git a/testpar/API/t_dset.c b/testpar/API/t_dset.c index d005243..56a3f68 100644 --- a/testpar/API/t_dset.c +++ b/testpar/API/t_dset.c @@ -2568,19 +2568,6 @@ extend_readAll(void) } #ifdef H5_HAVE_FILTER_DEFLATE -static const char * -h5_rmprefix(const char *filename) -{ - const char *ret_ptr; - - if ((ret_ptr = HDstrstr(filename, ":")) == NULL) - ret_ptr = filename; - else - ret_ptr++; - - return (ret_ptr); -} - /* * Example of using the parallel HDF5 library to read a compressed * dataset in an HDF5 file with collective parallel access support. diff --git a/testpar/API/t_filter_read.c b/testpar/API/t_filter_read.c index f32c21b..64b69b2 100644 --- a/testpar/API/t_filter_read.c +++ b/testpar/API/t_filter_read.c @@ -36,19 +36,6 @@ static int mpi_size, mpi_rank; #define HS_DIM1 200 #define HS_DIM2 100 -const char * -h5_rmprefix(const char *filename) -{ - const char *ret_ptr; - - if ((ret_ptr = HDstrstr(filename, ":")) == NULL) - ret_ptr = filename; - else - ret_ptr++; - - return (ret_ptr); -} - #ifdef H5_HAVE_FILTER_SZIP /*------------------------------------------------------------------------- diff --git a/testpar/API/t_shapesame.c b/testpar/API/t_shapesame.c index 340e89e..2a029ab 100644 --- a/testpar/API/t_shapesame.c +++ b/testpar/API/t_shapesame.c @@ -28,6 +28,10 @@ #include "hdf5.h" #include "testphdf5.h" +#ifndef PATH_MAX +#define PATH_MAX 512 +#endif + /* FILENAME and filenames must have the same number of names. * Use PARATESTFILE in general and use a separated filename only if the file * created in one test is accessed by a different test. @@ -3967,12 +3971,6 @@ ckrbrd_hs_dr_pio_test(ShapeSameTestMethods sstest_type) * Main driver of the Parallel HDF5 tests */ -#include "testphdf5.h" - -#ifndef PATH_MAX -#define PATH_MAX 512 -#endif /* !PATH_MAX */ - /* global variables */ int dim0; int dim1; |