? diffs ? etch.patch ? etch3.patch ? sol-test.patch ? x.patch ? po/pspp.pot ? tests/.libs Index: tests/bugs/overwrite-input-file.sh =================================================================== RCS file: /sources/pspp/pspp/tests/bugs/overwrite-input-file.sh,v retrieving revision 1.4 diff -b -w -U 3 -r1.4 overwrite-input-file.sh --- tests/bugs/overwrite-input-file.sh 20 May 2008 02:20:33 -0000 1.4 +++ tests/bugs/overwrite-input-file.sh 31 May 2008 01:14:55 -0000 @@ -92,13 +92,13 @@ activity="create program 2" -cat > $TESTFILE < $TESTFILE <<'EOF' GET 'foo.sav'. COMPUTE Y = X + 1. XSAVE OUTFILE='foo.sav'. XEXPORT OUTFILE='foo.por'. PRINT OUTFILE='foo.data'. -HOST kill -TERM \$PPID +HOST kill -TERM `test -z "$PPID" && ps -o ppid -p $$ | tail -1 || echo $PPID`. EOF if [ $? -ne 0 ] ; then no_result ; fi @@ -108,8 +108,9 @@ # status of a process terminated by a signal be greater than 128. if [ $? -le 128 ] ; then no_result ; fi + activity="check for remaining temporary files" -if test -e *.tmp*; then fail; fi +if test -f *.tmp*; then fail; fi activity="compare output 1" cmp foo.sav foo.sav.backup @@ -146,7 +147,7 @@ if [ $? -ne 0 ] ; then no_result ; fi activity="check for remaining temporary files" -if test -e *.tmp*; then fail; fi +if test -f *.tmp*; then fail; fi activity="create program 4" cat > $TESTFILE < /dev/null 2> $TEMPDIR/stderr1 +echo 'host kill -INT `test -z "$PPID" && ps -o ppid -p $$ | tail -1 || echo $PPID`.' | $PSPP --testing-mode > /dev/null 2> $TEMPDIR/stderr1 if [ $? -ne 0 ] ; then no_result ; fi # SIGINT should have caused a clean shutdown @@ -68,7 +68,7 @@ if [ $? -ne 0 ] ; then fail ; fi activity="sending SIGSEGV to pspp" -echo 'host kill -SEGV $PPID' | $PSPP --testing-mode > /dev/null 2> $TEMPDIR/stderr2 +echo 'host kill -SEGV `test -z "$PPID" && ps -o ppid -p $$ | tail -1 || echo $PPID`.' | $PSPP --testing-mode > /dev/null 2> $TEMPDIR/stderr2 if [ $? -eq 0 ] ; then no_result ; fi # SIGSEGV should have caused an error message