Quote Originally Posted by wysota View Post
Assert, by definition, kills your app. If you want an assert that will not kill your app but instead will return an error, it will not be an assert anymore.
I agree! My "assert" would log an error, show the error and then abort.

Quote Originally Posted by wysota View Post
Asserts don't throw exceptions. They call abort(). So there is nothing to "intercept". Even as the manual for abort says - "abort() does not return". If you want, just throw an exception instead of asserting and you'll be able to catch that in QtTestLib.
Sorry for the misunderstanding, but I used the term exception in a generally and did not specifically refer to the C++ exception handling. More precisely put, I was unsure if QtTest might intercept the assert.

Intercepting my own assert handling is actually what I have done now and it seems to give me expected results. QtTets can actually catch C++ exception thrown by the test methods.