Re: g_assert_handler for unit-tests

Uhhm yes - silly me. I already overwrite the log handlers to get a unified log
stream into a file. So I didn't thought about that.

Wonderful, nothing needs a change (except my code).
Thanks alot!

Michael Natterer wrote:
> Stefan Kost <kost imn htwk-leipzig de> writes:
>>Hi Michael,
>>I am aware that the the g_return_if_fail() macros log the failed tests like
>>g_assert() does. In combination with the fatal_mask the same behaviour as the
>>asserts can be enforced.
>>But all of this does not change the situation of the problem. The unit test
>>cannot check wheter the error is handled correctly. Functions that return
>>something can be checked a little (the should return e.g. NULL), but what about
>>void functions?
> Once you installed that handler, you can figure if it's called
> while a unit test is run. Maybe I don't exactly understand the
> problem, but it looks like you are looking for something like:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]