summaryrefslogtreecommitdiffstats
path: root/test/run.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-09 20:17:56 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-09 20:44:13 (GMT)
commit831ffbfb9a9e57436058eaead8eedf081b03103e (patch)
tree6adf288649ebff5aa5c6d2c7931ed585e1973fd9 /test/run.cmake
parent174356cdb7f27e741f9668883d1c5d558e20bc6b (diff)
downloadCastXML-831ffbfb9a9e57436058eaead8eedf081b03103e.zip
CastXML-831ffbfb9a9e57436058eaead8eedf081b03103e.tar.gz
CastXML-831ffbfb9a9e57436058eaead8eedf081b03103e.tar.bz2
test: Name expected results by language standard
Name files "gccxml.<std>.<test>.(stdout|stderr|result|xml).txt" where "<std>" is either the language standard or "any" if the result works for any standard.
Diffstat (limited to 'test/run.cmake')
-rw-r--r--test/run.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run.cmake b/test/run.cmake
index 560327e..854cf8c 100644
--- a/test/run.cmake
+++ b/test/run.cmake
@@ -47,8 +47,8 @@ foreach(o result stdout stderr ${maybe_xml})
set(expect-${o} "")
unset(expect_${o})
foreach(e ${expect})
- if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/expect/${e}-${o}.txt)
- file(READ ${CMAKE_CURRENT_LIST_DIR}/expect/${e}-${o}.txt expect_${o})
+ if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/expect/${e}.${o}.txt)
+ file(READ ${CMAKE_CURRENT_LIST_DIR}/expect/${e}.${o}.txt expect_${o})
break()
endif()
endforeach()