Describe the bug
According to the documentation, we can test that an exception has indeed been raised by using the EXPECTFAIL keyword.
So I assumed that the inverse is also true.
However, the code below passes, when it should fail:
ct_add_test(NAME "test_throw_exception")
function(${CMAKETEST_TEST})
ct_add_section(NAME "should_fail" EXPECTFAIL)
function(${CMAKETEST_SECTION})
message(STATUS "test_throw_exception/should_fail")
endfunction()
endfunction()
Is this the expected behavior or is it a bug?