]> git.lyx.org Git - features.git/commitdiff
Cmake export tests: Initalize the output variable 'inverted' in macro 'matetestname()'
authorKornel Benko <kornel@lyx.org>
Wed, 16 Mar 2016 23:36:02 +0000 (00:36 +0100)
committerKornel Benko <kornel@lyx.org>
Wed, 16 Mar 2016 23:36:02 +0000 (00:36 +0100)
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

index 7f505d057142154612b17e0ee3f9803e4073623d..2b84dd76173da86f1bb7a1e6eb9c540f389324f4 100644 (file)
@@ -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})