diff --git a/plugins/sudoers/regress/testsudoers/test11.sh b/plugins/sudoers/regress/testsudoers/test11.sh index a5bd2d317..802afa9b2 100755 --- a/plugins/sudoers/regress/testsudoers/test11.sh +++ b/plugins/sudoers/regress/testsudoers/test11.sh @@ -1,6 +1,7 @@ #!/bin/sh # # Test @include with garbage after the path name +# The standard error output is dup'd to the standard output. # # Avoid warnings about memory leaks when there is a syntax error @@ -8,18 +9,17 @@ ASAN_OPTIONS=detect_leaks=0; export ASAN_OPTIONS MYUID=`\ls -ln $TESTDIR/test2.inc | awk '{print $3}'` MYGID=`\ls -ln $TESTDIR/test2.inc | awk '{print $4}'` -exec 2>&1 echo "Testing @include with garbage after the path name" echo "" -./testsudoers -U $MYUID -G $MYGID root id <&1 | sed 's/\(syntax error\), .*/\1/' @include sudoers.local womp womp EOF echo "" echo "Testing #include with garbage after the path name" echo "" -./testsudoers -U $MYUID -G $MYGID root id <&1 | sed 's/\(syntax error\), .*/\1/' #include sudoers.local womp womp EOF