From: Kornel Benko Date: Wed, 16 Mar 2016 23:36:02 +0000 (+0100) Subject: Cmake export tests: Initalize the output variable 'inverted' in macro 'matetestname()' X-Git-Tag: 2.2.0rc1~81 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8e267a731507040f01415481f7b4ff1b8b706dc8;p=features.git 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 7f505d0571..2b84dd7617 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})