From 4aa78f52232682b353eb15c219171e466987bac7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 16 Jan 2020 00:19:29 -0500 Subject: [PATCH] build: Enable assertions for the RelWithDebugInfo build type. This fixes issue #5 (see: https://gitlab.com/inkscape/lib2geom/issues/5). * CMakeLists.txt: Remove the "-DNDEBUG" CXX flag from the default configuration for the RelWithDebugInfo build type. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bfeb8f03..a663a1b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,14 @@ enable_testing() include(CheckCXXSourceCompiles) +# Enable assertions for the RelWithDebugInfo build type. This is +# useful as some tests make use of it (see: +# https://gitlab.com/inkscape/lib2geom/issues/5). +if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + string(REPLACE "-DNDEBUG" "" + CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") +endif() + # Find dependencies find_package(Boost 1.40 REQUIRED) find_package(DoubleConversion REQUIRED) -- 2.24.1 aa46d72b19ce7c356944e'>refslogtreecommitdiff
path: root/tests/guix-environment.sh
AgeCommit message (Expand)Author
2023-04-21tests: Fix checks for expected failures....Addresses <https://issues.guix.gnu.org/62406>. With 'set -e', a return status inverted with '!' does not cause the shell to exit immediately. Instead use '&& false' to indicate an expected failure. * tests/guix-archive.sh, tests/guix-build-branch.sh, tests/guix-build.sh, tests/guix-daemon.sh, tests/guix-download.sh, tests/guix-environment-container.sh, tests/guix-environment.sh, tests/guix-gc.sh, tests/guix-git-authenticate.sh, tests/guix-graph.sh, tests/guix-hash.sh, tests/guix-home.sh, tests/guix-pack-relocatable.sh, tests/guix-pack.sh, tests/guix-package-aliases.sh, tests/guix-package-net.sh, tests/guix-package.sh, tests/guix-refresh.sh, tests/guix-shell.sh, tests/guix-style.sh, tests/guix-system.sh: Replace uses of '! ...' with '... && false' or `test ! ...` as appropriate. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Eric Bavier