From 6ae8564fbd8b357cd8c9d5bc71da340a2d922e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Bourlet?= Date: Wed, 15 Mar 2017 17:32:15 -0700 Subject: [PATCH] enable tests that somebody thought it was a good idea to permanently disable. --- BackwardConfig.cmake | 4 +++- CMakeLists.txt | 2 +- backward.hpp | 1 - builds.sh | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/BackwardConfig.cmake b/BackwardConfig.cmake index 1effcd8..281c5b7 100644 --- a/BackwardConfig.cmake +++ b/BackwardConfig.cmake @@ -39,6 +39,8 @@ set(STACK_DETAILS_DW FALSE CACHE BOOL set(STACK_DETAILS_BFD FALSE CACHE BOOL "Use libbfd to read debug info") +set(BACKWARD_TESTS FALSE CACHE BOOL "Enable tests") + ############################################################################### # CONFIGS ############################################################################### @@ -140,4 +142,4 @@ if (NOT TARGET Backward::Backward) INTERFACE_LINK_LIBRARIES "${BACKWARD_LIBRARIES}" INTERFACE_COMPILE_DEFINITIONS "${BACKWARD_DEFINITIONS}" ) -endif() \ No newline at end of file +endif() diff --git a/CMakeLists.txt b/CMakeLists.txt index bf6aa6e..3477b8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,4 +109,4 @@ install( install( FILES "BackwardConfig.cmake" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/backward -) \ No newline at end of file +) diff --git a/backward.hpp b/backward.hpp index 04f7843..a10f1f0 100644 --- a/backward.hpp +++ b/backward.hpp @@ -1882,7 +1882,6 @@ public: SIGUNUSED, // Synonymous with SIGSYS SIGXCPU, // CPU time limit exceeded (4.2BSD) SIGXFSZ, // File size limit exceeded (4.2BSD) - }; return std::vector(posix_signals, posix_signals + sizeof posix_signals / sizeof posix_signals[0] ); } diff --git a/builds.sh b/builds.sh index 60c39c4..6e1fb20 100755 --- a/builds.sh +++ b/builds.sh @@ -27,7 +27,7 @@ function mkbuild() { mkdir $builddir 2>/dev/null ( cd "$builddir" - cmake -DCMAKE_BUILD_TYPE=$buildtype .. + cmake -DCMAKE_BUILD_TYPE=$buildtype -DBACKWARD_TESTS=ON .. ) }