[farsight2/master] Make the rawudp test fail on g_warning and g_critical
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:15 PST 2008
---
tests/check/transmitter/rawudp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index 8cc74c7..7ed36fe 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -385,7 +385,11 @@ rawudptransmitter_suite (void)
{
Suite *s = suite_create ("rawudptransmitter");
TCase *tc_chain;
+ GLogLevelFlags fatal_mask;
+ fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
+ fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
+ g_log_set_always_fatal (fatal_mask);
tc_chain = tcase_create ("rawudptransmitter");
tcase_set_timeout (tc_chain, 5);
--
1.5.6.5
More information about the farsight-commits
mailing list