Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194
$(APPARMOR_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_UNIX_CFLAGS) \
+ $(VALGRIND_CFLAGS) \
$(NULL)
# improve backtraces from test stuff
#include <dbus/dbus.h>
+#include "dbus/dbus-valgrind-internal.h"
+
#ifdef G_OS_WIN
# define isatty(x) _isatty(x)
#endif
if (timeout != 0)
g_source_remove (timeout);
+ if (RUNNING_ON_VALGRIND)
+ factor = factor * 10;
+
timeout = g_timeout_add_seconds (TIMEOUT * factor, time_out, NULL);
#ifdef G_OS_UNIX
/* The GLib main loop might not be running (we don't use it in every