diff options
author | Marius Kintel <marius@kintel.net> | 2012-10-10 03:32:56 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-10-10 03:32:56 (GMT) |
commit | 65fc1d6b01ade5e76fe712f93e2e108194c3291b (patch) | |
tree | 01db642d8dd2cd0cae80fedcc1510bfa4fcfbff1 /tests | |
parent | 165c29e159ba660019fc4c5184819ca49adf8bda (diff) |
Detect recursive execution of functions to avoid a stack overflow crash. Fixes #200
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/regression/echotest/recursion-tests-expected.txt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 33f3547..68083ce 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -704,7 +704,8 @@ list(APPEND ECHO_FILES ${FUNCTION_FILES} ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/string-test.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/string-indexing.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/vector-values.scad - ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/search-tests.scad) + ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/search-tests.scad + ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/recursion-tests.scad) list(APPEND DUMPTEST_FILES ${MINIMAL_FILES} ${FEATURES_FILES} ${EXAMPLE_FILES}) list(APPEND DUMPTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/escape-test.scad diff --git a/tests/regression/echotest/recursion-tests-expected.txt b/tests/regression/echotest/recursion-tests-expected.txt new file mode 100644 index 0000000..f4897ee --- /dev/null +++ b/tests/regression/echotest/recursion-tests-expected.txt @@ -0,0 +1,2 @@ +Recursion detected calling function 'crash' +ECHO: undef |