From 8e267a731507040f01415481f7b4ff1b8b706dc8 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Thu, 17 Mar 2016 00:36:02 +0100 Subject: [PATCH] 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. --- development/autotests/ExportTests.cmake | 2 ++ 1 file changed, 2 insertions(+) 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})