|
GnuCash 2.4.99
|
#include <unittest-support.h>
Data Fields | |
| GLogLevelFlags | log_level |
| gchar * | log_domain |
| gchar * | msg |
| guint | hits |
Suppressing Expected Errors
Functions for suppressing expected errors during tests. Pass
Note that you need to call both g_log_set_handler *and* g_test_log_set_fatal_handler to both avoid the assertion and suppress the error message. The callbacks work in either role, just cast them appropriately for the use. Struct to pass as user_data for the handlers. Setting a parameter to NULL or 0 will match any value in the error, so if you have the same message and log level being issued in two domains you can match both of them by setting log_domain = NULL.
Definition at line 72 of file unittest-support.h.
1.7.4