summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-762989.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-762989.t')
-rwxr-xr-xtests/bugs/bug-762989.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bugs/bug-762989.t b/tests/bugs/bug-762989.t
index 1794693ccc0..fb256717626 100755
--- a/tests/bugs/bug-762989.t
+++ b/tests/bugs/bug-762989.t
@@ -4,6 +4,14 @@
cleanup;
+# Skip the entire test if ip_local_reserved_ports does not exist
+if [ ! -f /proc/sys/net/ipv4/ip_local_reserved_ports ] ; then
+ echo "Skip test on /proc/sys/net/ipv4/ip_local_reserved_ports, "\
+ "which does not exists on this system" >&2
+ SKIP_TESTS
+ exit 0
+fi
+
## reserve port 1023
older_ports=$(cat /proc/sys/net/ipv4/ip_local_reserved_ports);
echo "1023" > /proc/sys/net/ipv4/ip_local_reserved_ports;