From db90a2b3becdcd9a7fa98186c10b86e45212dac8 Mon Sep 17 00:00:00 2001 From: Jiri Danek Date: Sat, 20 Mar 2021 16:45:49 +0100 Subject: [PATCH 2/5] PROTON-2342 Upgrade Catch to v1.12.2 https://github.com/catchorg/Catch2/releases/tag/v1.12.2 --- tests/include/catch.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/include/catch.hpp b/tests/include/catch.hpp index f619f23..fdb046f 100644 --- a/tests/include/catch.hpp +++ b/tests/include/catch.hpp @@ -1,6 +1,6 @@ /* - * Catch v1.12.1 - * Generated: 2018-03-02 21:17:41.036711 + * Catch v1.12.2 + * Generated: 2018-05-14 15:10:01.112442 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. @@ -6599,6 +6599,7 @@ namespace Catch { #endif // not Windows +#include #include #include @@ -8466,7 +8467,7 @@ namespace Catch { } inline Version libraryVersion() { - static Version version( 1, 12, 1, "", 0 ); + static Version version( 1, 12, 2, "", 0 ); return version; } @@ -9171,6 +9172,8 @@ std::string toString( std::nullptr_t ) { // #included from: catch_result_builder.hpp #define TWOBLUECUBES_CATCH_RESULT_BUILDER_HPP_INCLUDED +#include + namespace Catch { ResultBuilder::ResultBuilder( char const* macroName, @@ -10664,6 +10667,7 @@ namespace Catch { // #included from: ../reporters/catch_reporter_console.hpp #define TWOBLUECUBES_CATCH_REPORTER_CONSOLE_HPP_INCLUDED +#include #include #include -- 1.8.3.1 From 3deea551c9fe61adefae5eb8fd77e919850a213d Mon Sep 17 00:00:00 2001 From: Jiri Danek Date: Sat, 20 Mar 2021 16:48:13 +0100 Subject: [PATCH 3/5] PROTON-2342 Apply patch for non-constant SIGSTKSZ from Fedora to Catch https://src.fedoraproject.org/rpms/catch1/c/059104ba87494c0b5ebe16844ec190f253e51cac?branch=rawhide --- tests/include/catch.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/include/catch.hpp b/tests/include/catch.hpp index fdb046f..d64fd1a 100644 --- a/tests/include/catch.hpp +++ b/tests/include/catch.hpp @@ -6540,7 +6540,7 @@ namespace Catch { static bool isSet; static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)]; static stack_t oldSigStack; - static char altStackMem[SIGSTKSZ]; + static char altStackMem[32768]; static void handleSignal( int sig ) { std::string name = ""; @@ -6560,7 +6560,7 @@ namespace Catch { isSet = true; stack_t sigStack; sigStack.ss_sp = altStackMem; - sigStack.ss_size = SIGSTKSZ; + sigStack.ss_size = 32768; sigStack.ss_flags = 0; sigaltstack(&sigStack, &oldSigStack); struct sigaction sa = { 0 }; @@ -6591,7 +6591,7 @@ namespace Catch { bool FatalConditionHandler::isSet = false; struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {}; stack_t FatalConditionHandler::oldSigStack = {}; - char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; + char FatalConditionHandler::altStackMem[32768] = {}; } // namespace Catch -- 1.8.3.1