You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testpreprocessor.cpp
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1529,7 +1529,7 @@ class TestPreprocessor : public TestFixture {
1529
1529
const std::map<std::string, std::string> actual = getcode(settings0, *this, filedata);
1530
1530
1531
1531
ASSERT_EQUALS(0, actual.size());
1532
-
ASSERT_EQUALS("[file.c:2:0]: (error) No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective]\n", errout_str());
1532
+
ASSERT_EQUALS("[file.c:2:0]: (error) No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str());
1533
1533
}
1534
1534
}
1535
1535
@@ -1544,7 +1544,7 @@ class TestPreprocessor : public TestFixture {
ASSERT_EQUALS("[file.cpp:3:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective]\n", errout_str());
1547
+
ASSERT_EQUALS("[file.cpp:3:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str());
1548
1548
}
1549
1549
1550
1550
{
@@ -1557,7 +1557,7 @@ class TestPreprocessor : public TestFixture {
ASSERT_EQUALS("[abc.h:2:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective]\n", errout_str());
1560
+
ASSERT_EQUALS("[abc.h:2:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str());
1561
1561
}
1562
1562
1563
1563
{
@@ -1570,7 +1570,7 @@ class TestPreprocessor : public TestFixture {
ASSERT_EQUALS("[file.cpp:2:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective]\n", errout_str());
1573
+
ASSERT_EQUALS("[file.cpp:2:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str());
1574
1574
}
1575
1575
1576
1576
{
@@ -1582,7 +1582,7 @@ class TestPreprocessor : public TestFixture {
ASSERT_EQUALS("[file.cpp:2:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective]\n", errout_str());
1585
+
ASSERT_EQUALS("[file.cpp:2:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str());
1586
1586
}
1587
1587
1588
1588
{
@@ -1598,7 +1598,7 @@ class TestPreprocessor : public TestFixture {
1598
1598
// expand macros..
1599
1599
(void)expandMacros(filedata, *this);
1600
1600
1601
-
ASSERT_EQUALS("[file.cpp:7:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective]\n", errout_str());
1601
+
ASSERT_EQUALS("[file.cpp:7:0]: (error) No pair for character (\"). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]\n", errout_str());
1602
1602
}
1603
1603
}
1604
1604
@@ -1651,7 +1651,7 @@ class TestPreprocessor : public TestFixture {
1651
1651
// Compare results..
1652
1652
ASSERT_EQUALS(1, actual.size());
1653
1653
ASSERT_EQUALS("", actual.at(""));
1654
-
ASSERT_EQUALS("[file.c:6:0]: (error) failed to expand 'BC', Wrong number of parameters for macro 'BC'. [preprocessorErrorDirective]\n", errout_str());
1654
+
ASSERT_EQUALS("[file.c:6:0]: (error) failed to expand 'BC', Wrong number of parameters for macro 'BC'. [syntaxError]\n", errout_str());
1655
1655
}
1656
1656
1657
1657
voidnewline_in_macro() {
@@ -1968,12 +1968,12 @@ class TestPreprocessor : public TestFixture {
1968
1968
1969
1969
voidinvalid_define_1() {
1970
1970
(void)getcode(settings0, *this, "#define =\n");
1971
-
ASSERT_EQUALS("[file.c:1:0]: (error) Failed to parse #define [preprocessorErrorDirective]\n", errout_str());
1971
+
ASSERT_EQUALS("[file.c:1:0]: (error) Failed to parse #define [syntaxError]\n", errout_str());
0 commit comments