aboutsummaryrefslogtreecommitdiff
path: root/xtests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-09-05 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-09-05 08:00:00 +0000
commit1c6a4a54fa238b148428a9ce601a52fce63e9afe (patch)
tree0e0ba9fbecd8a314110cf26e7f2c609e336317e6 /xtests
parent2ecce4848a5a00d4245b4e6f09fbe93ef3576994 (diff)
downloadpam-1c6a4a54fa238b148428a9ce601a52fce63e9afe.tar.gz
pam-1c6a4a54fa238b148428a9ce601a52fce63e9afe.tar.bz2
pam-1c6a4a54fa238b148428a9ce601a52fce63e9afe.zip
run-xtests.sh: skip the tests instead of failing them if run by non-root
This simplifies integration of xtests into test frameworks.
Diffstat (limited to 'xtests')
-rwxr-xr-xxtests/run-xtests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtests/run-xtests.sh b/xtests/run-xtests.sh
index e580e0ab..42e92d70 100755
--- a/xtests/run-xtests.sh
+++ b/xtests/run-xtests.sh
@@ -6,7 +6,7 @@ shift 1
if test `id -u` -ne 0 ; then
echo "You need to be root to run the tests"
- exit 1
+ exit 77
fi
XTESTS="$@"