Skip to content

Commit bfb9e98

Browse files
committed
update project_test.py for another slnx test
1 parent 8db8753 commit bfb9e98

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/importproject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,13 +513,13 @@ bool ImportProject::importSlnx(const std::string& filename, const std::vector<st
513513
tinyxml2::XMLDocument doc;
514514
const tinyxml2::XMLError error = doc.LoadFile(filename.c_str());
515515
if (error != tinyxml2::XML_SUCCESS) {
516-
errors.emplace_back(std::string("Visual Studio project file is not a valid XML - ") + tinyxml2::XMLDocument::ErrorIDToName(error));
516+
errors.emplace_back(std::string("Visual Studio solution file is not a valid XML - ") + tinyxml2::XMLDocument::ErrorIDToName(error));
517517
return false;
518518
}
519519

520520
const tinyxml2::XMLElement* const rootnode = doc.FirstChildElement();
521521
if (rootnode == nullptr) {
522-
errors.emplace_back("Visual Studio project file has no XML root node");
522+
errors.emplace_back("Visual Studio solution file has no XML root node");
523523
return false;
524524
}
525525

test/cli/project_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __test_project_error(tmpdir, ext, content, expected):
3333
@pytest.mark.parametrize("project_ext, expected", [
3434
("json", "compilation database is not a JSON array"),
3535
("sln", "Visual Studio solution file is empty"),
36+
("slnx", "Visual Studio solution file is not a valid XML - XML_ERROR_EMPTY_DOCUMENT"),
3637
("vcxproj", "Visual Studio project file is not a valid XML - XML_ERROR_EMPTY_DOCUMENT"),
3738
("bpr", "Borland project file is not a valid XML - XML_ERROR_EMPTY_DOCUMENT"),
3839
("cppcheck", "Cppcheck GUI project file is not a valid XML - XML_ERROR_EMPTY_DOCUMENT")

0 commit comments

Comments
 (0)