summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-09-26 20:46:55 (GMT)
committerGitHub <noreply@github.com>2023-09-26 20:46:55 (GMT)
commit1529ec0ab3a348e17aab0e0ec97bb80adc4decc2 (patch)
tree5ec9e4feb2bf7888b9db7b8b28c6bc135dab3b16 /test/h5test.c
parenta87ca572fed15303ad36adcb6f2203f8297e8277 (diff)
downloadhdf5-1529ec0ab3a348e17aab0e0ec97bb80adc4decc2.zip
hdf5-1529ec0ab3a348e17aab0e0ec97bb80adc4decc2.tar.gz
hdf5-1529ec0ab3a348e17aab0e0ec97bb80adc4decc2.tar.bz2
Develop tools move (#3580)
Reorganizes the tools files to support the VOL tests
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/h5test.c b/test/h5test.c
index e7e9ec9..862b9a3 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1894,9 +1894,9 @@ H5_get_srcdir_filename(const char *filename)
/* Build path to test file. We're checking the length so suppress
* the gcc format-truncation warning.
*/
- if ((strlen(srcdir) + strlen(filename) + 1) < sizeof(srcdir_testpath)) {
+ if ((strlen(srcdir) + strlen("testfiles/") + strlen(filename) + 1) < sizeof(srcdir_testpath)) {
H5_GCC_DIAG_OFF("format-truncation")
- snprintf(srcdir_testpath, sizeof(srcdir_testpath), "%s%s", srcdir, filename);
+ snprintf(srcdir_testpath, sizeof(srcdir_testpath), "%stestfiles/%s", srcdir, filename);
H5_GCC_DIAG_ON("format-truncation")
return srcdir_testpath;
}