commit 8e267a731507040f01415481f7b4ff1b8b706dc8
Author: Kornel Benko <[email protected]>
Date: Thu Mar 17 00:36:02 2016 +0100
Cmake export tests: Initalize the output variable 'inverted' in macro
'matetestname()'
It could happen that the variable was set in creating a previous test-case.
Some combinations in the controlling files (suspiciousTests,
unrelibleTests, ...)
did not set this variable.
diff --git a/development/autotests/ExportTests.cmake
b/development/autotests/ExportTests.cmake
index 7f505d0..2b84dd7 100644
--- a/development/autotests/ExportTests.cmake
+++ b/development/autotests/ExportTests.cmake
@@ -114,6 +114,8 @@ function(join rvalues glue routput)
endfunction()
macro(maketestname testname inverted listsuspicious listignored listunreliable
listlabels)
+ # initialize output variable
+ set(${inverted} 0)
string(REGEX MATCH "\\/[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${${testname}})
if(_v)
string(REGEX REPLACE "\\/" "" _v ${_v})