summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2021-05-20 21:50:58 +0100
committerRichard Hughes <richard@hughsie.com>2021-05-21 10:59:20 +0100
commitf889d9801f490b67558b2c7a71dc1f3e1eb445a7 (patch)
treed723c6a4a2968c7b4146d8e12e068788ed0f916f
parent9fef0c519a5fac7587a0aed5b25669aea0f3c657 (diff)
downloadgusb-f889d9801f490b67558b2c7a71dc1f3e1eb445a7.tar.gz
Do not run the tests on FreeBSD
Root hubs on FreeBSD have vid and pid set to zero. Based on a patch by Ting-Wei Lan <lantw@src.gnome.org>
-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);