Files
sudo/plugins/sudoers/regress/testsudoers/test4.sh
Todd C. Miller 50d0191de3 Disable Address Sanitizer leak detection for tests which generate
parse errors.  The parser leaks a bit on error.
2016-09-15 08:33:01 -06:00

15 lines
240 B
Bash
Executable File

#!/bin/sh
#
# Test sudoers owner check
#
# Avoid warnings about memory leaks when there is a syntax error
ASAN_OPTIONS=detect_leaks=0; export ASAN_OPTIONS
exec 2>&1
./testsudoers -U 1 root id <<EOF
#include $TESTDIR/test2.inc
EOF
exit 0