We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f884f9 commit 55c289dCopy full SHA for 55c289d
tests/template/main.cpp
@@ -38,8 +38,6 @@
38
#pragma GCC diagnostic ignored "-Weffc++"
39
#endif
40
#include <cppunit/TestCase.h>
41
-#include <cppunit/TestResult.h>
42
-#include <cppunit/TestResultCollector.h>
43
#include <cppunit/XmlOutputter.h>
44
#include <cppunit/extensions/HelperMacros.h>
45
#include <cppunit/ui/text/TestRunner.h>
@@ -91,9 +89,10 @@ int main() {
91
89
92
90
xmlFileOut.close();
93
}
94
- catch ( [[maybe_unused]] const std::exception &_exception ) {
+ catch ( const std::exception &_exception ) {
95
96
/* Do not throw exception here */
+ std::cout << _exception.what() << std::endl;
97
98
99
return wasSuccessful ? 0 : 1;
0 commit comments