]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Skip name-test/ when running under valgrind for now
authorSimon McVittie <smcv@collabora.com>
Thu, 12 Jul 2018 12:06:32 +0000 (13:06 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 2 Aug 2018 16:16:52 +0000 (17:16 +0100)
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

test/name-test/Makefile.am
test/name-test/test-ids.c
test/name-test/test-pending-call-disconnected.c
test/name-test/test-pending-call-dispatch.c
test/name-test/test-pending-call-timeout.c
test/name-test/test-privserver-client.c
test/name-test/test-privserver.c
test/name-test/test-shutdown.c
test/name-test/test-threads-init.c

index 40096350d938714f79bddc094ca9c3d5e89ce726..dd7f82a8828512a69e88c4080be67c837a0d4d31 100644 (file)
@@ -1,6 +1,7 @@
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
        $(DBUS_STATIC_BUILD_CPPFLAGS) \
+       $(VALGRIND_CFLAGS) \
        -DDBUS_COMPILATION \
        $(NULL)
 
index 73b71f154349ec29a9f83f0e7ba5ebb7aa3914ce..be449abd5594c68bc924a68100a54b62c90e35bb 100644 (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)
index 6ff4243a9cdee3043de6e7c3984790b974f4054e..6ef04b6b11495dfb40b77000338da1dc70fc2ea7 100644 (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);
index af80868a0f888d92d2285d252fcf4b8b55eea64a..e30d1f74028f4654c0af56c114867622449a9eed 100644 (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 
index a204db011111d13dba6c544c8afefffcac17f612..c47ba3f2c863aa8c933aaca768af2c9f3b2b869e 100644 (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);
index 7a293f4ea5b9158c35f712c2a09a732928797c82..d522a9c49fc5fc099327477d0ca159bd27475e14 100644 (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 ();
index 04f9cfa0841dfd2cf08d5831f1ea519e30e992e6..1d579ba0d42e22c96d42d2e3d165e03500cd0cb6 100644 (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 ();
index dbbe52546a91f2f74429beaf3f4c271f26875dad..b195bbb717caef38a6fa5dfaf22aa3b22f1d9d3a 100644 (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 ();
index a19b9627bbd8ec44b145834fc1790bcce42636cf..fa90ca72eaa2791295bdf986d1fb815da7fd88f9 100644 (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);