Fix Travis tests

This fixes a bug introduced in #180.
This commit is contained in:
Steven Myint 2013-10-11 23:43:07 -07:00
parent 783bb6eb0b
commit 18402bf673
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"]