From 624b92bc9767806b258e473b75f12814c2bbc0eb Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 27 Jul 2024 09:14:51 -0500 Subject: [PATCH] enable backward-cpp for test --- repertory/repertory_test/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/repertory/repertory_test/main.cpp b/repertory/repertory_test/main.cpp index e24ce7f2..59ac20aa 100644 --- a/repertory/repertory_test/main.cpp +++ b/repertory/repertory_test/main.cpp @@ -19,6 +19,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if !defined(PROJECT_STATIC_LINK) +#include "backward.hpp" +#endif + #include "initialize.hpp" #include "test_common.hpp" #include "utils/error_utils.hpp" @@ -33,6 +37,10 @@ std::size_t PROVIDER_INDEX{0U}; #endif // _WIN32 auto main(int argc, char **argv) -> int { +#if !defined(PROJECT_STATIC_LINK) + static backward::SignalHandling sh; +#endif + if (not repertory::project_initialize()) { std::cerr << "fatal: failed to initialize repertory" << std::endl; return -1;