summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-04-26 10:51:39 -0400
committerColin Walters <walters@verbum.org>2010-04-26 10:51:39 -0400
commit47adc3b17f20a78230c5c34e635fc30bb7afbde2 (patch)
treee9c6f21e0abe3bb3c2fb21d8e54f25cb68653864
parent16deb341b52421695b81ebe8c91c81f47eb173f3 (diff)
Disable test-profile on win32 for now
It uses Unix sockets, and overall isn't very interesting anyways.
-rw-r--r--test/core/test-profile.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/core/test-profile.c b/test/core/test-profile.c
index 219c6ed..67ae6a1 100644
--- a/test/core/test-profile.c
+++ b/test/core/test-profile.c
@@ -21,6 +21,13 @@
*
*/
+/* This test uses Unix-specific facilities */
+#ifdef G_OS_WIN32
+#define TEST_PROFILE_DISABLED
+#endif
+
+#ifndef TEST_PROFILE_DISABLED
+
#include <config.h>
#include <glib.h>
#include <dbus/dbus-glib-lowlevel.h>
@@ -1090,13 +1097,15 @@ print_result (const ProfileRunVTable *vtable,
seconds/baseline, vtable->name,
seconds, seconds / N_ITERATIONS);
}
+#endif
int
main (int argc, char *argv[])
{
+#ifndef TEST_PROFILE_DISABLED
g_thread_init (NULL);
dbus_g_thread_init ();
-
+
#ifndef DBUS_DISABLE_ASSERT
g_printerr ("You should probably --disable-asserts before you profile as they have noticeable overhead\n");
#endif
@@ -1145,6 +1154,6 @@ main (int argc, char *argv[])
/* Make valgrind happy */
dbus_shutdown ();
-
+#endif /* TEST_PROFILE_DISABLED */
return 0;
}