Skip to content

Commit 3c542e9

Browse files
danmarclaude
andcommitted
Fix TestPreprocessor failures after simplecpp 1.10.0 update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 888461c commit 3c542e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/testpreprocessor.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2805,6 +2805,8 @@ class TestPreprocessor : public TestFixture {
28052805

28062806
// Preprocess => don't crash..
28072807
(void)getcode(settings0, *this, filedata);
2808+
ASSERT_EQUALS("[file.c:3:2]: (error) failed to evaluate #if condition, invalid expression [syntaxError]\n"
2809+
"[file.c:3:2]: (error) failed to evaluate #if condition, invalid expression [syntaxError]\n", errout_str());
28082810
}
28092811

28102812
void wrongPathOnErrorDirective() {
@@ -3245,7 +3247,7 @@ class TestPreprocessor : public TestFixture {
32453247
std::vector<std::string> files;
32463248
TokenList tokenlist{settingsDefault, Standards::Language::CPP};
32473249
// TODO: can this happen from application code? if yes we need to turn it into a proper error
3248-
ASSERT_THROW_EQUALS(preprocess(code, files, "test.cpp", tokenlist, dui), std::runtime_error, "unexpected simplecpp::Output type 12");
3250+
ASSERT_THROW_EQUALS(preprocess(code, files, "test.cpp", tokenlist, dui), std::runtime_error, "unexpected simplecpp::Output type 13");
32493251
ASSERT(!tokenlist.front()); // nothing is tokenized when an unknown standard is provided
32503252
}
32513253
}

0 commit comments

Comments
 (0)