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 10
10
# Build and test many combinations on Linux/OS X using Conan
11
11
clang-tidy :
12
12
strategy :
13
+ fail-fast : false
13
14
matrix :
14
15
int128 : ["True", "False"]
15
16
70
71
# Build and test many combinations on Linux/OS X using Conan
71
72
conan :
72
73
strategy :
74
+ fail-fast : false
73
75
matrix :
74
76
name : [
75
77
clang-14-libc++, clang-14-libstdc++,
@@ -225,6 +227,7 @@ jobs:
225
227
# Build and test on Windows using Conan
226
228
windows :
227
229
strategy :
230
+ fail-fast : false
228
231
matrix :
229
232
name : [2022-64, 2022-32, 2019-64, 2019-32]
230
233
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