summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-02-15 22:04:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-02-15 22:04:06 (GMT)
commit58e6e3e102180e6ab454441869ec68b2ef506f20 (patch)
tree90ded4497024c3f7603b05167a0aa6322c7c60cf /test
parent122b63a5a27227f2349634f4e8f8e43d739255f5 (diff)
downloadhdf5-58e6e3e102180e6ab454441869ec68b2ef506f20.zip
hdf5-58e6e3e102180e6ab454441869ec68b2ef506f20.tar.gz
hdf5-58e6e3e102180e6ab454441869ec68b2ef506f20.tar.bz2
HDFFV-10703 macro vars need quotes
Diffstat (limited to 'test')
-rw-r--r--test/CMakeTests.cmake4
-rw-r--r--test/CMakeVFDTests.cmake6
-rw-r--r--test/CMakeVOLTests.cmake6
3 files changed, 8 insertions, 8 deletions
diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake
index 26e5a78..c606eb1 100644
--- a/test/CMakeTests.cmake
+++ b/test/CMakeTests.cmake
@@ -555,7 +555,7 @@ foreach (h5_test ${H5_TESTS})
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
)
else ()
- if (h5_test STREQUAL "big" AND CYGWIN)
+ if ("${h5_test}" STREQUAL "big" AND CYGWIN)
add_test (NAME H5TEST-${h5_test}
COMMAND ${CMAKE_COMMAND} -E echo "SKIP ${test}"
)
@@ -598,7 +598,7 @@ if (BUILD_SHARED_LIBS)
foreach (h5_test ${H5_TESTS})
if (NOT h5_test IN_LIST H5TEST_SEPARATE_TESTS)
- if (h5_test STREQUAL "big" AND CYGWIN)
+ if ("${h5_test}" STREQUAL "big" AND CYGWIN)
add_test (NAME H5TEST-shared-${h5_test}
COMMAND ${CMAKE_COMMAND} -E echo "SKIP ${test}-shared"
)
diff --git a/test/CMakeVFDTests.cmake b/test/CMakeVFDTests.cmake
index ad3d1e9..a4cf26d 100644
--- a/test/CMakeVFDTests.cmake
+++ b/test/CMakeVFDTests.cmake
@@ -109,8 +109,8 @@ endif ()
# Windows only macro
macro (CHECK_VFD_TEST vfdtest vfdname resultcode)
- if (vfdtest STREQUAL "flush1" OR vfdtest STREQUAL "flush2")
- if (vfdname STREQUAL "multi" OR vfdname STREQUAL "split")
+ if ("${vfdtest}" STREQUAL "flush1" OR "${vfdtest}" STREQUAL "flush2")
+ if ("${vfdname}" STREQUAL "multi" OR "${vfdname}" STREQUAL "split")
if (NOT BUILD_SHARED_LIBS AND NOT HDF_CFG_NAME MATCHES "Debug")
add_test (
NAME VFD-${vfdname}-${vfdtest}-clear-objects
@@ -239,7 +239,7 @@ endif ()
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname};HDF5TestExpress=${HDF_TEST_EXPRESS}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
)
- if (BUILD_SHARED_LIBS AND NOT vfdtest STREQUAL "cache")
+ if (BUILD_SHARED_LIBS AND NOT "${vfdtest}" STREQUAL "cache")
add_test (
NAME VFD-${vfdname}-${vfdtest}-shared-clear-objects
COMMAND ${CMAKE_COMMAND}
diff --git a/test/CMakeVOLTests.cmake b/test/CMakeVOLTests.cmake
index 7c02e23..cf47291 100644
--- a/test/CMakeVOLTests.cmake
+++ b/test/CMakeVOLTests.cmake
@@ -106,8 +106,8 @@ endif ()
# Windows only macro
macro (CHECK_VOL_TEST voltest volname volinfo resultcode)
- if (voltest STREQUAL "flush1" OR voltest STREQUAL "flush2")
- if (volname STREQUAL "multi" OR volname STREQUAL "split")
+ if ("${voltest}" STREQUAL "flush1" OR "${voltest}" STREQUAL "flush2")
+ if ("${volname}" STREQUAL "multi" OR "${volname}" STREQUAL "split")
if (NOT BUILD_SHARED_LIBS AND NOT ${HDF_CFG_NAME} MATCHES "Debug")
add_test (
NAME VOL-${volname}-${voltest}-clear-objects
@@ -236,7 +236,7 @@ endif ()
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${volname};HDF5TestExpress=${HDF_TEST_EXPRESS}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${volname}
)
- if (BUILD_SHARED_LIBS AND NOT voltest STREQUAL "cache")
+ if (BUILD_SHARED_LIBS AND NOT "${voltest}" STREQUAL "cache")
add_test (
NAME VOL-${volname}-${voltest}-shared-clear-objects
COMMAND ${CMAKE_COMMAND}