You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testother.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -560,7 +560,7 @@ class TestOther : public TestFixture {
560
560
" f1(123,y);\n"
561
561
" if (y>0){}\n"
562
562
"}");
563
-
ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:1]: (warning) Either the condition 'y>0' is redundant or there is division by zero at line 1.\n", errout.str());
563
+
TODO_ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:1]: (warning) Either the condition 'y>0' is redundant or there is division by zero at line 1.\n", "", errout.str());
564
564
565
565
// avoid false positives when variable is changed after division
Copy file name to clipboardExpand all lines: test/testtype.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -194,13 +194,13 @@ class TestType : public TestFixture {
194
194
" return x * y;\n"
195
195
"}\n"
196
196
"void f2() { f1(-4,4); }");
197
-
ASSERT_EQUALS("[test.cpp:1]: (warning) Suspicious code: sign conversion of x in calculation, even though x can have a negative value\n", errout.str());
197
+
TODO_ASSERT_EQUALS("[test.cpp:1]: (warning) Suspicious code: sign conversion of x in calculation, even though x can have a negative value\n", "", errout.str());
198
198
199
199
check("unsigned int f1(int x) {"// x has no signedness, but it can have the value -1 so assume it's signed
200
200
" return x * 5U;\n"
201
201
"}\n"
202
202
"void f2() { f1(-4); }");
203
-
ASSERT_EQUALS("[test.cpp:1]: (warning) Suspicious code: sign conversion of x in calculation, even though x can have a negative value\n", errout.str());
203
+
TODO_ASSERT_EQUALS("[test.cpp:1]: (warning) Suspicious code: sign conversion of x in calculation, even though x can have a negative value\n", "", errout.str());
204
204
205
205
check("unsigned int f1(int x) {"// #6168: FP for inner calculation
206
206
" return 5U * (1234 - x);\n"// <- signed subtraction, x is not sign converted
0 commit comments