Skip to content

Commit

Permalink
Test 'Preprocessor: Proper fix for danmar#3690'
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jul 13, 2012
1 parent 5645269 commit c6fdd27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/testpreprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3540,6 +3540,7 @@ class TestPreprocessor : public TestFixture {
Preprocessor preprocessor(&settings, this);

ASSERT_EQUALS(true, preprocessor.validateCfg("", "X=42")); // don't hang when parsing cfg
ASSERT_EQUALS(false, preprocessor.validateCfg("int y=Y;", "X=42;Y"));
ASSERT_EQUALS(false, preprocessor.validateCfg("int x=X;", "X"));
ASSERT_EQUALS(false, preprocessor.validateCfg("X=1;", "X"));
ASSERT_EQUALS(true, preprocessor.validateCfg("int x=X;", "Y"));
Expand Down

0 comments on commit c6fdd27

Please sign in to comment.