Merge pull request #181 from myint/fix

Fix Travis tests
This commit is contained in:
Daniel Marjamäki 2013-10-12 01:53:29 -07:00
commit d2d121ce2b
2 changed files with 5 additions and 3 deletions

View File

@ -17,9 +17,9 @@ script:
- ./cppcheck-htmlreport --file ../gui/test/data/xmlfiles/xmlreport_v1.xml --title "xml1 test" --report-dir . --source-dir ../test/
- ./cppcheck-htmlreport --file ../gui/test/data/xmlfiles/xmlreport_v2.xml --title "xml2 test" --report-dir . --source-dir ../test/
- ../cppcheck ../gui/test --enable=all --inconclusive --xml-version=2 2> gui_test.xml
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive test" --report-dir . --source-dir ../gui/test
- ../cppcheck ../gui/test --enable=all --inconclusive --verbose --xml-version=2 2> gui_test.xml
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive + verbose test" --report-dir . --source-dir ../gui/test
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive test" --report-dir .
- ../cppcheck ../gui/test --enable=all --inconclusive --verbose --xml-version=2 2> gui_test.xml
- ./cppcheck-htmlreport --file ./gui_test.xml --title "xml2 + inconclusive + verbose test" --report-dir .
- cd ../
- mkdir install_test
- make DESTDIR=install_test install

View File

@ -196,6 +196,8 @@ class CppCheckHandler(XmlContentHandler):
def handleVersion2(self, name, attributes):
if name == "error":
self.errors.append({
"file" : "",
"line" : 0,
"id" : attributes["id"],
"severity" : attributes["severity"],
"msg" : attributes["msg"]