Skip name-test/ when running under valgrind for now

These tests are very reliant on their custom LOG_COMPILER,
which AX_VALGRIND_CHECK replaces.

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
This commit is contained in:
Simon McVittie 2018-07-12 13:06:32 +01:00
parent 8177bbcf52
commit bb73c756f1
9 changed files with 57 additions and 0 deletions

View file

@ -1,6 +1,7 @@
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(DBUS_STATIC_BUILD_CPPFLAGS) \
$(VALGRIND_CFLAGS) \
-DDBUS_COMPILATION \
$(NULL)

View file

@ -4,6 +4,7 @@
#include <string.h>
#include <dbus/dbus.h>
#include <dbus/dbus-connection-internal.h>
#include <dbus/dbus-valgrind-internal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@ -29,6 +30,12 @@ main (int argc,
char *id;
char *server_id;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
dbus_error_init (&error);
connection = dbus_bus_get (DBUS_BUS_SESSION, &error);
if (connection == NULL)

View file

@ -30,6 +30,7 @@
#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
#include <dbus/dbus-valgrind-internal.h>
#include <stdio.h>
#include <stdlib.h>
@ -55,6 +56,12 @@ main (int argc, char *argv[])
DBusPendingCall *pending;
DBusMessage *reply;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
printf ("# Testing pending call error\n");
dbus_connection_allocate_data_slot (&slot_connection);

View file

@ -33,6 +33,7 @@
#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
#include <dbus/dbus-valgrind-internal.h>
#include <stdio.h>
#include <stdlib.h>
@ -111,6 +112,12 @@ main (int argc, char *argv[])
DBusConnection *conn;
DBusError error;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
/* Time each iteration and make sure it doesn't take more than 5 seconds
to complete. Outside influences may cause connections to take longer
but if it does and we are stuck in a poll call then we know the

View file

@ -6,6 +6,7 @@
#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
#include <dbus/dbus-valgrind-internal.h>
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
@ -77,6 +78,12 @@ main (int argc, char *argv[])
DBusConnection *conn;
DBusError error;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
printf ("# Testing pending call timeouts\n");
dbus_error_init (&error);

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <dbus/dbus-valgrind-internal.h>
#include "../test-utils.h"
static void die (const char *message,
@ -158,6 +159,12 @@ main (int argc, char *argv[])
{
int test_num = 0;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
open_shutdown_private_connection (TRUE);
dbus_shutdown ();

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <dbus/dbus-valgrind-internal.h>
#include "../test-utils.h"
static void die (const char *message,
@ -81,6 +82,12 @@ main (int argc, char *argv[])
DBusConnection *session;
TestServiceData *testdata;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
dbus_error_init (&error);
loop = _dbus_loop_new ();

View file

@ -1,5 +1,6 @@
#include <config.h>
#include <dbus/dbus-valgrind-internal.h>
#include "../test-utils.h"
static DBusLoop *loop;
@ -54,6 +55,12 @@ main (int argc,
{
int test_num = 0;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
open_destroy_shared_session_bus_connection ();
dbus_shutdown ();

View file

@ -10,6 +10,7 @@
#include <dbus/dbus-internals.h>
#include <dbus/dbus-connection-internal.h>
#include <dbus/dbus-valgrind-internal.h>
static void
_run_iteration (DBusConnection *conn)
@ -123,6 +124,12 @@ main (int argc, char *argv[])
DBusCondVar *dispatch_cond2, *io_path_cond2;
int test_num = 0;
if (RUNNING_ON_VALGRIND)
{
printf ("1..0 # SKIP Not ready to run under valgrind yet\n");
return 0;
}
printf ("# Testing late thread init\n");
dbus_error_init (&error);