summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod/runTest.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-02-21 19:23:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-02-21 19:23:59 (GMT)
commitb7d6f11182f148c0d0fff8d077d7fa342080d98c (patch)
tree0aa0ffedde62d58bb836993809394d58268a9727 /config/cmake_ext_mod/runTest.cmake
parent0c6110e586985aa6d2356b739179130c5d79e9c1 (diff)
downloadhdf5-b7d6f11182f148c0d0fff8d077d7fa342080d98c.zip
hdf5-b7d6f11182f148c0d0fff8d077d7fa342080d98c.tar.gz
hdf5-b7d6f11182f148c0d0fff8d077d7fa342080d98c.tar.bz2
HDFFV-10703 - Update CMake variable handling
Diffstat (limited to 'config/cmake_ext_mod/runTest.cmake')
-rw-r--r--config/cmake_ext_mod/runTest.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/cmake_ext_mod/runTest.cmake b/config/cmake_ext_mod/runTest.cmake
index 48402a2..13e8a4d 100644
--- a/config/cmake_ext_mod/runTest.cmake
+++ b/config/cmake_ext_mod/runTest.cmake
@@ -218,8 +218,8 @@ if (NOT TEST_SKIP_COMPARE)
foreach (line RANGE 0 ${_FP_LEN})
list (GET test_act ${line} str_act)
list (GET test_ref ${line} str_ref)
- if (NOT ${str_act} STREQUAL ${str_ref})
- if (NOT str_act STREQUAL "")
+ if (NOT str_act STREQUAL str_ref)
+ if (str_act)
set (TEST_RESULT 1)
message ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
endif ()
@@ -270,8 +270,8 @@ if (NOT TEST_SKIP_COMPARE)
foreach (line RANGE 0 ${_FP_LEN})
list (GET test_act ${line} str_act)
list (GET test_ref ${line} str_ref)
- if (NOT ${str_act} STREQUAL ${str_ref})
- if (NOT ${str_act} STREQUAL "")
+ if (NOT str_act STREQUAL str_ref)
+ if (str_act)
set (TEST_RESULT 1)
message ("line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n")
endif ()