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/testsuppressions.cpp
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1555,16 +1555,16 @@ class TestSuppressions : public TestFixture {
1555
1555
1556
1556
// empty file
1557
1557
{
1558
-
ScopedFile file("suppressparsexml.xml",
1558
+
ScopedFile file("suppressparsexml_empty.xml",
1559
1559
"");
1560
1560
1561
1561
SuppressionList supprList;
1562
-
ASSERT_EQUALS("failed to load suppressions XML 'suppressparsexml.xml' (XML_ERROR_EMPTY_DOCUMENT).", supprList.parseXmlFile(file.path().c_str()));
1562
+
ASSERT_EQUALS("failed to load suppressions XML 'suppressparsexml_empty.xml' (XML_ERROR_EMPTY_DOCUMENT).", supprList.parseXmlFile(file.path().c_str()));
@@ -1573,24 +1573,24 @@ class TestSuppressions : public TestFixture {
1573
1573
1574
1574
// no root node
1575
1575
{
1576
-
ScopedFile file("suppressparsexml.xml",
1576
+
ScopedFile file("suppressparsexml_noroot.xml",
1577
1577
"<?xml version=\"1.0\"?>\n");
1578
1578
1579
1579
SuppressionList supprList;
1580
-
ASSERT_EQUALS("failed to load suppressions XML 'suppressparsexml.xml' (no root node found).", supprList.parseXmlFile(file.path().c_str()));
1580
+
ASSERT_EQUALS("failed to load suppressions XML 'suppressparsexml_noroot.xml' (no root node found).", supprList.parseXmlFile(file.path().c_str()));
1581
1581
}
1582
1582
1583
1583
// unknown element
1584
1584
{
1585
-
ScopedFile file("suppressparsexml.xml",
1585
+
ScopedFile file("suppressparsexml_unk_elem.xml",
1586
1586
"<suppressions>\n"
1587
1587
"<suppress>\n"
1588
1588
"<eid>uninitvar</eid>\n"
1589
1589
"</suppress>\n"
1590
1590
"</suppressions>");
1591
1591
1592
1592
SuppressionList supprList;
1593
-
ASSERT_EQUALS("unknown element 'eid' in suppressions XML 'suppressparsexml.xml', expected id/fileName/lineNumber/symbolName/hash.", supprList.parseXmlFile(file.path().c_str()));
1593
+
ASSERT_EQUALS("unknown element 'eid' in suppressions XML 'suppressparsexml_unk_elem.xml', expected id/fileName/lineNumber/symbolName/hash.", supprList.parseXmlFile(file.path().c_str()));
0 commit comments