-
Notifications
You must be signed in to change notification settings - Fork 1.5k
testrunner: added more IDs and columns to expected output #7489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Like previous changes this messes up the expected output of TODO test cases a bit. Speaking of those. I wonder if we should file tickets for all TODO tests. Doing that would make them actually visible and we would have proper triage of them and such. |
| const std::string code("#error hello world!\n"); | ||
| (void)PreprocessorHelper::getcode(settings, *this, code, "X", "test.c"); | ||
| ASSERT_EQUALS("[test.c:1]: (error) #error hello world!\n", errout_str()); | ||
| ASSERT_EQUALS("[test.c:1:0]: (error) #error hello world! [preprocessorErrorDirective]\n", errout_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The missing column only occurs in the tests. It is present when using the CLI.
| "}\n", | ||
| ""); | ||
| ASSERT_EQUALS("[test.cpp:1]: (information) Unmatched suppression: uninitvar\n", errout_str()); | ||
| ASSERT_EQUALS("[test.cpp:1:0]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n", errout_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I filed https://trac.cppcheck.net/ticket/13810 about this.
No description provided.