diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23fd30d6b..58108a548 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,7 @@ jobs: # Build and test many combinations on Linux/OS X using Conan clang-tidy: strategy: + fail-fast: false matrix: int128: ["True", "False"] @@ -70,6 +71,7 @@ jobs: # Build and test many combinations on Linux/OS X using Conan conan: strategy: + fail-fast: false matrix: name: [ clang-14-libc++, clang-14-libstdc++, @@ -225,6 +227,7 @@ jobs: # Build and test on Windows using Conan windows: strategy: + fail-fast: false matrix: name: [2022-64, 2022-32, 2019-64, 2019-32] include: diff --git a/test/unit/cmath.cpp b/test/unit/cmath.cpp index 9374b7c2d..43b072134 100644 --- a/test/unit/cmath.cpp +++ b/test/unit/cmath.cpp @@ -19,7 +19,12 @@ static_assert(identical(2, cnl::sqrt(4))); TEST(cmake, sqrt_float) // NOLINT { - auto const expected{3.5}; + auto const expected{new double{3.5}}; auto const actual{cnl::sqrt(12.25)}; - ASSERT_EQ(expected, actual); + // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) + ASSERT_EQ(*expected, actual); + if (actual > 42) { + // NOLINTNEXTLINE(cppcoreguidelines-owning-memory) + delete expected; + } }