summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-08 16:29:55 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-08 16:29:55 (GMT)
commit2ab5a0cc9bae5c66b9050ba0d1e2f2f563091d17 (patch)
treeba5013824538ebe2ab27061f8a83ff03b419aff9
parent5acc695399447b84f108fd57e7828fbf5df4102e (diff)
Use function instead of module to avoid leaking global variables
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 90ebb78..23928ed 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -675,7 +675,7 @@ endfunction()
# [EXPECTEDDIR <shared dir>] SUFFIX <suffix> FILES <test files>)
#
find_package(PythonInterp)
-macro(add_cmdline_test TESTCMD)
+function(add_cmdline_test TESTCMD)
cmake_parse_arguments(TESTCMD "" "EXE;SUFFIX;EXPECTEDDIR" "FILES;ARGS" ${ARGN})
# If sharing results with another test, pass on this to the python script
@@ -723,7 +723,7 @@ macro(add_cmdline_test TESTCMD)
set_property(TEST ${TEST_FULLNAME} PROPERTY ENVIRONMENT "${CTEST_ENVIRONMENT}")
endif()
endforeach()
-endmacro()
+endfunction()
enable_testing()
contact: Jan Huwald // Impressum