summaryrefslogtreecommitdiffstats
path: root/tests/sndrcv_udp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sndrcv_udp.sh')
-rwxr-xr-xtests/sndrcv_udp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sndrcv_udp.sh b/tests/sndrcv_udp.sh
index 274a414a..df37782c 100755
--- a/tests/sndrcv_udp.sh
+++ b/tests/sndrcv_udp.sh
@@ -7,4 +7,7 @@
# This file is part of the rsyslog project, released under GPLv3
echo ===============================================================================
echo \[sndrcv_udp.sh\]: testing sending and receiving via udp
+if [ "$EUID" -ne 0 ]; then
+ exit 77 # Not root, skip this test
+fi
source $srcdir/sndrcv_drvr.sh sndrcv_udp 50