File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 39
39
# Build and test latest on Linux using only CMake
40
40
cmake :
41
41
strategy :
42
+ fail-fast : false
42
43
matrix :
43
44
compiler : [clang, gcc]
44
45
include :
@@ -105,6 +106,7 @@ jobs:
105
106
# Build and test many combinations on Linux/OS X using Conan
106
107
conan :
107
108
strategy :
109
+ fail-fast : false
108
110
matrix :
109
111
name : [
110
112
clang-head-libc++, clang-head-libstdc++,
@@ -242,6 +244,7 @@ jobs:
242
244
windows :
243
245
runs-on : windows-2019
244
246
strategy :
247
+ fail-fast : false
245
248
matrix :
246
249
arch : [x86_64, x86]
247
250
include :
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ static_assert(identical(2, cnl::sqrt(4)));
19
19
20
20
TEST (cmake, sqrt_float) // NOLINT
21
21
{
22
- auto const expected{3.5 };
22
+ auto const expected{new double { 3.5 } };
23
23
auto const actual{cnl::sqrt (12.25 )};
24
- ASSERT_EQ (expected, actual);
24
+ // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
25
+ ASSERT_EQ (*expected, actual);
26
+ if (actual > 42 ) {
27
+ // NOLINTNEXTLINE(cppcoreguidelines-owning-memory)
28
+ delete expected;
29
+ }
25
30
}
You can’t perform that action at this time.
0 commit comments