From e1e4d6649fe85a00845384ff50a96cf72174809c Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Fri, 4 Sep 2009 13:18:49 +0000 Subject: [PATCH] Allow setuid tests 11 and 33 to run. The former still fails (but now with a meaningful error) while the latter succeeds. Only 2 tests are left borken on default MINIX, namely 11 and 28. --- test/run | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/run b/test/run index bafaeb745..dc95c3d06 100755 --- a/test/run +++ b/test/run @@ -20,7 +20,14 @@ for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \ 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \ 41 sh1.sh sh2.sh do total=`expr $total + 1` - if ./test$i + CMD=./test$i + if [ $USER = root -a \( $i = 11 -o $i = 33 \) ] + then + chmod u+s $CMD > /dev/null + CMD=su\ -\ ast\ -c\ `pwd`/$CMD + fi + + if $CMD then passed=`expr $passed + 1` else failed=`expr $failed + 1` badones=`echo $badones " " $i` -- 2.44.0