diff options
author | Richard Hughes <richard@hughsie.com> | 2021-05-20 21:50:58 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2021-05-21 10:59:20 +0100 |
commit | f889d9801f490b67558b2c7a71dc1f3e1eb445a7 (patch) | |
tree | d723c6a4a2968c7b4146d8e12e068788ed0f916f | |
parent | 9fef0c519a5fac7587a0aed5b25669aea0f3c657 (diff) | |
download | gusb-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.c | 10 |
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); |