summaryrefslogtreecommitdiffstats
path: root/config/cmake/runTest.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-09-21 17:26:49 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-09-21 17:26:49 (GMT)
commit95bc60ceb48bf6cd508691dd94be071b190fa74a (patch)
tree1766f8c7501dcae0f450a01641547d531f9b590a /config/cmake/runTest.cmake
parent937cfb0c26fe7f2a38cc379ae71a4c6a5f5d3087 (diff)
downloadhdf5-95bc60ceb48bf6cd508691dd94be071b190fa74a.zip
hdf5-95bc60ceb48bf6cd508691dd94be071b190fa74a.tar.gz
hdf5-95bc60ceb48bf6cd508691dd94be071b190fa74a.tar.bz2
[svn-r19460] Updated runTest.cmake to compare against the expected result code rather then just 0
Diffstat (limited to 'config/cmake/runTest.cmake')
-rw-r--r--config/cmake/runTest.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake/runTest.cmake b/config/cmake/runTest.cmake
index 227ef9b..ed415f7 100644
--- a/config/cmake/runTest.cmake
+++ b/config/cmake/runTest.cmake
@@ -50,9 +50,9 @@ IF (TEST_APPEND)
FILE (APPEND ${TEST_OUTPUT} "${TEST_APPEND} ${TEST_RESULT}\n")
ENDIF (TEST_APPEND)
-# if the return value is !=0 bail out
+# if the return value is !=${TEST_EXPECT} bail out
IF (NOT ${TEST_RESULT} STREQUAL ${TEST_EXPECT})
- MESSAGE ( FATAL_ERROR "Failed: Test program ${TEST_PROGRAM} exited != 0.\n${TEST_ERROR}")
+ MESSAGE ( FATAL_ERROR "Failed: Test program ${TEST_PROGRAM} exited != ${TEST_EXPECT}.\n${TEST_ERROR}")
ENDIF (NOT ${TEST_RESULT} STREQUAL ${TEST_EXPECT})
MESSAGE (STATUS "COMMAND Error: ${TEST_ERROR}")