I was wondering how to deal with asserts fired from a function that is tested in a QTest module. Imagine, you want to test a method bool xyz() that internally uses a precondition that might fire if something is inconsistent. QCOMPARE(xyz(), true) would never be executed because xyz() already exists with an assert.
Is this simply not supported in the Qt test environment, does it need to somehow managed manually (using some global semaphore for example) or did I just not get it?
Bookmarks