]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Save work on test suite to ensure we collect the exit status of all child
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 30 Jul 2014 17:56:35 +0000 (17:56 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 30 Jul 2014 17:56:35 +0000 (17:56 +0000)
print processes.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12065 a1ca3aef-8c08-0410-bb20-df032aa958be

test/5.5-lp.sh
test/5.6-lpr.sh
test/run-stp-tests.sh

index 949f3d770838cead7d89f06887578a32e6847cf0..a74f19bf739a6f8163e8ac80beee0a882f56bc91 100644 (file)
@@ -4,7 +4,7 @@
 #
 #   Test the lp command.
 #
-#   Copyright 2007-2012 by Apple Inc.
+#   Copyright 2007-2014 by Apple Inc.
 #   Copyright 1997-2005 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
@@ -55,6 +55,7 @@ echo ""
 echo "    lp -d Test1 testfile.jpg"
 echo "    lp -d Test2 testfile.jpg"
 i=0
+pids=""
 while test $i -lt $1; do
        j=1
        while test $j -le $2; do
@@ -63,12 +64,13 @@ while test $i -lt $1; do
        done
 
        $VALGRIND ../systemv/lp -d Test1 testfile.jpg 2>&1 &
+       pids="$pids $!"
        $VALGRIND ../systemv/lp -d Test2 testfile.jpg 2>&1 &
-       lppid=$!
+       pids="$pids $!"
 
        i=`expr $i + 1`
 done
-wait $lppid
+wait $pids
 if test $? != 0; then
        echo "    FAILED"
        exit 1
index 5d0663af3d10869d39cf3a265a90161fd4492b54..7298792f65122f07144ac1ac27047fe253c11a25 100644 (file)
@@ -4,7 +4,7 @@
 #
 #   Test the lpr command.
 #
-#   Copyright 2007-2012 by Apple Inc.
+#   Copyright 2007-2014 by Apple Inc.
 #   Copyright 1997-2005 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
@@ -55,6 +55,7 @@ echo ""
 echo "    lpr -P Test1 testfile.jpg"
 echo "    lpr -P Test2 testfile.jpg"
 i=0
+pids=""
 while test $i -lt $1; do
        j=1
        while test $j -le $2; do
@@ -63,12 +64,13 @@ while test $i -lt $1; do
        done
 
        $VALGRIND ../berkeley/lpr -P Test1 testfile.jpg 2>&1 &
+       pids="$pids $!"
        $VALGRIND ../berkeley/lpr -P Test2 testfile.jpg 2>&1 &
-       lprpid=$!
+       pids="$pids $!"
 
        i=`expr $i + 1`
 done
-wait $lppid
+wait $pids
 if test $? != 0; then
        echo "    FAILED"
        exit 1
index a9d1afa553a92542c69f1ba6b29edcee1b811a9e..641e03b7807e44f53a87048a5ea4b0863654efe9 100755 (executable)
@@ -199,6 +199,7 @@ if test -d /private/tmp; then
 else
        BASE=/tmp/cups-$user
 fi
+export BASE
 
 #
 # Make sure that the LPDEST and PRINTER environment variables are