summaryrefslogtreecommitdiff
path: root/tests/sndrcv_omudpspoof.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sndrcv_omudpspoof.sh')
-rwxr-xr-xtests/sndrcv_omudpspoof.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sndrcv_omudpspoof.sh b/tests/sndrcv_omudpspoof.sh
index bb804d9..cb1c249 100755
--- a/tests/sndrcv_omudpspoof.sh
+++ b/tests/sndrcv_omudpspoof.sh
@@ -7,4 +7,8 @@
# This file is part of the rsyslog project, released under GPLv3
echo ===============================================================================
echo \[sndrcv_omudpspoof.sh\]: testing sending and receiving via omudp
+echo This test must be run as root [raw socket access required]
+if [ "$EUID" -ne 0 ]; then
+ exit 77 # Not root, skip this test
+fi
source $srcdir/sndrcv_drvr.sh sndrcv_omudpspoof 50