Make the logging test more robust
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 Feb 2013 21:23:03 +0000 (16:23 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Feb 2013 23:27:22 +0000 (18:27 -0500)
commit8455702a8d55436f2ca37b801052d41cfb0ee2c9
treeeec69f9f39b3eec643c63bfd9c4bd73e8a66ee45
parent067d822968719e87adde7745541e8fa82cfcf9ab
Make the logging test more robust

The default handler test was not unsetting the log handler that
gets installed by GTest, which causes the log messages to be duplicated
on stdout if --verbose or --tap are passed. This in turn can make some
of the non-match checks fail. Since we are already using g_test_trap_fork,
we can just unset the handler in the child.
glib/tests/logging.c