Skip to content

Commit af122b0

Browse files
committed
testrunner: added more columns and error IDs to expected output [skip ci]
1 parent 2da4490 commit af122b0

File tree

6 files changed

+293
-280
lines changed

6 files changed

+293
-280
lines changed

test/testgarbage.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class TestGarbage : public TestFixture {
3838
settings.severity.fill();
3939
settings.certainty.fill();
4040

41+
mNewTemplate = true;
42+
4143
// don't freak out when the syntax is wrong
4244

4345
TEST_CASE(final_class_x);
@@ -404,7 +406,7 @@ class TestGarbage : public TestFixture {
404406
// TODO: add column and IDs
405407
SimpleTokenizer tokenizer(settings, *this);
406408
ASSERT(tokenizer.tokenize(code));
407-
ASSERT_EQUALS("[test.cpp:1]: (information) The code 'class x y {' is not handled. You can use -I or --include to add handling of this code.\n", errout_str());
409+
ASSERT_EQUALS("[test.cpp:1:1]: (information) The code 'class x y {' is not handled. You can use -I or --include to add handling of this code. [class_X_Y]\n", errout_str());
408410
}
409411
}
410412

0 commit comments

Comments
 (0)