<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I find myself needing to count a test that I expect to fail an
assertion (I'm using CMake 2.8.4). My first attempt, using the test
property WILL_FAIL, erm, failed because apparently an abort is
trapped as an exception rather than a failing execution.<br>
<br>
I have worked around this for now by writing a wrapper script, but
can I suggest two enhancements (assuming this behavior isn't
implemented somewhere I haven't found)?<br>
<ol>
<li>WILL_FAIL be enhanced to take a number as well as true (if
this is possible) such that if a number is passed then that is
the error code expected and anything else is a failure.</li>
<li>A new property WILL_FAIL_ASSERTION which can be either true or
a regular expression specifying the particular assertion to be
expected, with anything else (even another assertion) being a
test failure.</li>
</ol>
Of course, anything that provides the desired behavior (preferably
by specifying a test property) would be perfectly fine: the above
are merely suggestions.<br>
<br>
Thanks,<br>
Chris.<br>
<br>
</body>
</html>