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