Files
gentoo/dev-libs/libnl/files/libnl-3.11.0-no-iproute2.patch
Sam James 630abaf569 dev-libs/libnl: fix tests w/ network-sandbox
* Backport a patch to cope w/ no permissions for a network namespace
* Always skip/fail iproute2 detection in tests

Signed-off-by: Sam James <sam@gentoo.org>
2025-06-01 19:09:07 +01:00

19 lines
498 B
Diff

Avoid the following test failure within network-sandbox:
tests/cksuite-all-netns.c:335:F:Core:route_1:0: command(system("ip -d link set v1 up")) has unexpected positive return code 512
--- a/tests/nl-test-util.c
+++ b/tests/nl-test-util.c
@@ -780,12 +780,7 @@ bool _nltst_in_ci(void)
bool _nltst_has_iproute2(void)
{
- static int has = -1;
-
- if (has == -1)
- has = (system("ip link &>/dev/null") == 0);
-
- return has;
+ return false;
}
bool _nltst_skip_no_iproute2(const char *msg)