Skip to content

Commit 0dc702e

Browse files
committed
s [skip ci]
1 parent f843ad7 commit 0dc702e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/testsuppressions.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,16 +1555,16 @@ class TestSuppressions : public TestFixture {
15551555

15561556
// empty file
15571557
{
1558-
ScopedFile file("suppressparsexml.xml",
1558+
ScopedFile file("suppressparsexml_empty.xml",
15591559
"");
15601560

15611561
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()));
15631563
}
15641564

15651565
// wrong root node
15661566
{
1567-
ScopedFile file("suppressparsexml.xml",
1567+
ScopedFile file("suppressparsexml_wrong_root.xml",
15681568
"<suppress/>\n");
15691569

15701570
SuppressionList supprList;
@@ -1573,24 +1573,24 @@ class TestSuppressions : public TestFixture {
15731573

15741574
// no root node
15751575
{
1576-
ScopedFile file("suppressparsexml.xml",
1576+
ScopedFile file("suppressparsexml_noroot.xml",
15771577
"<?xml version=\"1.0\"?>\n");
15781578

15791579
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()));
15811581
}
15821582

15831583
// unknown element
15841584
{
1585-
ScopedFile file("suppressparsexml.xml",
1585+
ScopedFile file("suppressparsexml_unk_elem.xml",
15861586
"<suppressions>\n"
15871587
"<suppress>\n"
15881588
"<eid>uninitvar</eid>\n"
15891589
"</suppress>\n"
15901590
"</suppressions>");
15911591

15921592
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()));
15941594
}
15951595
}
15961596

0 commit comments

Comments
 (0)