for example i do this , in my code
CPPUNIT_ASSERT(1!=1);
sometimes i run the test in QtTestRunner and i can run it once, but if push run Button again it terminates my program ...
it terminates for every assert that is false
Once or twice i had this message :
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
QObject::killTimers: timers cannot be stopped from another thread
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've had the same problem using the TextUi. The compiler complains about "Suspicious pointer conversion" in TestAssert.h line 84. Then when I run the program I get a message that it raise an exception class CppUnit::Exception.
for example i do this , in my code
CPPUNIT_ASSERT(1!=1);
sometimes i run the test in QtTestRunner and i can run it once, but if push run Button again it terminates my program ...
it terminates for every assert that is false
Once or twice i had this message :
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
QObject::killTimers: timers cannot be stopped from another thread
I've had the same problem using the TextUi. The compiler complains about "Suspicious pointer conversion" in TestAssert.h line 84. Then when I run the program I get a message that it raise an exception class CppUnit::Exception.
I am using the SimpleTest from:
http://dn.codegear.com/article/32704
Any help getting this to work would be greatly appreciated.
Thank you,
Don