@@ -701,15 +701,15 @@ class TestImportProject : public TestFixture {
701701 ASSERT (cppcheck::testing::evaluateVcxprojCondition (" $(Configuration.Contains ( 'Address' ) )" , " Debug-AddressSanitizer" , " Win32" ));
702702 ASSERT (cppcheck::testing::evaluateVcxprojCondition (" $(Configuration.Contains('Address')) And '$(Platform)' == 'Win32'" , " Debug-AddressSanitizer" , " Win32" ));
703703 ASSERT (cppcheck::testing::evaluateVcxprojCondition (" ($(Configuration.Contains('Address')) ) And ( '$(Platform)' == 'Win32')" , " Debug-AddressSanitizer" , " Win32" ));
704- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" And" , " " , " " ), std::runtime_error, " 'And' without previous expression! " );
705- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" Or" , " " , " " ), std::runtime_error, " 'Or' without previous expression! " );
706- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" !" , " " , " " ), std::runtime_error, " Expected expression here! " );
707- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" '' == '' And " , " " , " " ), std::runtime_error, " Expected expression here! " );
704+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" And" , " " , " " ), std::runtime_error, " Invalid condition: 'And'" );
705+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" Or" , " " , " " ), std::runtime_error, " Invalid condition: 'Or'" );
706+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" !" , " " , " " ), std::runtime_error, " Invalid condition: '!' " );
707+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" '' == '' And " , " " , " " ), std::runtime_error, " Missing operator " );
708708 ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" ('' == ''" , " " , " " ), std::runtime_error, " '(' without closing ')'!" );
709- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" '' == '')" , " " , " " ), std::runtime_error, " Unhandled expression! " );
710- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" ''" , " " , " " ), std::runtime_error, " Within a string comparison. We expect at least a =='' or !='' ! " );
711- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" '' == '" , " " , " " ), std::runtime_error, " Within a string comparison. We expect at least a =='' or !='' ! " );
712- ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" $(Configuration.Lower())" , " " , " " ), std::runtime_error, " Unexpected function call! " );
709+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" '' == '')" , " " , " " ), std::runtime_error, " unmatched ')' in condition '' == '') " );
710+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" ''" , " " , " " ), std::runtime_error, " Invalid condition: '''' " );
711+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" '' == '" , " " , " " ), std::runtime_error, " Invalid condition: ''' == '' " );
712+ ASSERT_THROW_EQUALS (cppcheck::testing::evaluateVcxprojCondition (" $(Configuration.Lower())" , " " , " " ), std::runtime_error, " Missing operator " );
713713 }
714714
715715 // TODO: test fsParseCommand()
0 commit comments