summaryrefslogtreecommitdiff
path: root/gusb/gusb-self-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-self-test.c')
-rw-r--r--gusb/gusb-self-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gusb/gusb-self-test.c b/gusb/gusb-self-test.c
index 924c66e..4b5ab2c 100644
--- a/gusb/gusb-self-test.c
+++ b/gusb/gusb-self-test.c
@@ -21,6 +21,11 @@ gusb_device_func (void)
GUsbContext *ctx;
GUsbDevice *device;
+#ifdef __FreeBSD__
+ g_test_skip ("Root hubs on FreeBSD have vid and pid set to zero");
+ return;
+#endif
+
ctx = g_usb_context_new (&error);
g_assert_no_error (error);
g_assert (ctx != NULL);
@@ -71,6 +76,11 @@ gusb_context_func (void)
gchar *product;
guint i;
+#ifdef __FreeBSD__
+ g_test_skip ("Root hubs on FreeBSD have vid and pid set to zero");
+ return;
+#endif
+
ctx = g_usb_context_new (&error);
g_assert_no_error (error);
g_assert (ctx != NULL);