From: Ulf L. <ul...@wa...> - 2013-01-16 20:49:05
|
On Tue, 15 Jan 2013 23:28:16 +0100 Piotr Bienkiewicz <dms...@gm...> wrote: > Hi Ulf/all, > > I've just committed a small cxxtest sample project. Check out the > repository! > > Since cxxtest doesn't supports features to test an occurrence of C++ > signals, there is an possible workaround posted by Bill Hart in > cxxtest help-forum: > "At the moment, signal handlers are not supported in CxxTest. > However, you could support this by creating a signal handler that > throws an exception that is caught by CxxTest using TS_ASSERT_ > THROWS." Ok, the only signals that might reasonably be sent are floating point error and segfaults. We will see if we ever want to test for them (normally you want your code not to do this...). Other signals are probably not critical enough to care for them. In the worst case, we have a 30-hour simulation running. While it is annoying to get it killed, it is not extremely critical. Ulf |