summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-11-17 17:14:14 -0500
committerMike Gilbert <floppym@gentoo.org>2021-11-17 17:14:14 -0500
commit476da19e46c29b4244fd73d4c056a02324de0b9f (patch)
tree6f03e83c6aafd44a903efffe3d41f0b24e3b774b /dev-libs/libusb
parentdev-libs/libowfat: fix build with sys-libs/glibc-2.34 (diff)
downloadgentoo-476da19e46c29b4244fd73d4c056a02324de0b9f.tar.gz
gentoo-476da19e46c29b4244fd73d4c056a02324de0b9f.tar.bz2
gentoo-476da19e46c29b4244fd73d4c056a02324de0b9f.zip
dev-libs/libusb: skip stress test when /dev/bus/usb is missing
Closes: https://bugs.gentoo.org/824266 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/libusb')
-rw-r--r--dev-libs/libusb/libusb-1.0.24-r2.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-libs/libusb/libusb-1.0.24-r2.ebuild b/dev-libs/libusb/libusb-1.0.24-r2.ebuild
index 2e1af019d6a1..c13d355add9e 100644
--- a/dev-libs/libusb/libusb-1.0.24-r2.ebuild
+++ b/dev-libs/libusb/libusb-1.0.24-r2.ebuild
@@ -46,7 +46,12 @@ multilib_src_test() {
emake check
# noinst_PROGRAMS from tests/Makefile.am
- tests/stress || die
+ if [[ -e /dev/bus/usb ]]; then
+ tests/stress || die
+ else
+ # https://bugs.gentoo.org/824266
+ ewarn "/dev/bus/usb does not exist, skipping stress test"
+ fi
}
multilib_src_install() {