summaryrefslogtreecommitdiffstats
path: root/tests/imuxsock_ccmiddle_root.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/imuxsock_ccmiddle_root.sh')
-rwxr-xr-xtests/imuxsock_ccmiddle_root.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/imuxsock_ccmiddle_root.sh b/tests/imuxsock_ccmiddle_root.sh
index b487611a..7f255bd0 100755
--- a/tests/imuxsock_ccmiddle_root.sh
+++ b/tests/imuxsock_ccmiddle_root.sh
@@ -2,6 +2,9 @@
# carry out this test
echo \[imuxsock_ccmiddle_root.sh\]: test trailing LF handling in imuxsock
echo This test must be run as root with no other active syslogd
+if [ "$EUID" -ne 0 ]; then
+ exit 77 # Not root, skip this test
+fi
source $srcdir/diag.sh init
source $srcdir/diag.sh startup imuxsock_ccmiddle_root.conf
# send a message with trailing LF