Menu

Tests fail when running as a plugin

Help
kshahar
2006-07-10
2013-04-22
  • kshahar

    kshahar - 2006-07-10

    I have a project with several tests. When i build it in Release mode (under MSVC 7.1) as a test plugin, some of the tests fail. However, when i build it as an executable (again, in release mode), and run the tests with a TestRunner, they all pass.

    The tests that fail, fail with "uncaught exception of unknown type", some of them fail in the setUp() method.

    I have no problem with Debug mode, only Release mode. Does anyone have an idea what could be the problem?

    I'm using cppunit-1.10.2 and msvc7.1.

     
    • Tom Plunket

      Tom Plunket - 2006-07-10

      I remember once upon a time encountering a problem with CppUnit and exception slicing, but I don't remember the exact operation that caused it.  However, that might be what's going on for you, that an exception is getting created, then sliced into a base type, then the behavior you're noticing?

       

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.