Details
Description
When the XML file has errors it can happen that qdbusxml2cpp finishes without any error notice and with a return code of 0, but with invalid header/C++ files generated.
The attached XML file contains 2 errors, both cause wrong output code to be generated:
-the interface name may not contain dashes
-a slash is missing on the first input parameter
Any combination of these errors will lead to defective code to be generated, but there is neither an error nor a return code different from 0, so there is no way to find this until one compiles the classes that use this and wonders about strange errors from them or maybe even that works but the DBus interface at runtime simply does not include the expected methods.
The call was:
/usr/bin/qdbusxml2cpp -v -a xml2cpptest -l xml2cpptest org.qt-project.testqtdbusxml2cpp.xml; echo $?