Menu

CPPUNIT_ASSERT fails and terminates program

Help
2008-07-08
2013-04-22
  • Marius Florea

    Marius Florea - 2008-07-08

    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

     
    • D. Anderson Gardner

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.