X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Finsert.sh;h=f80dc5fc4a0df3f1c4250ef32e0bf3bb45e7a524;hb=a1efcf97ca2f75f4be6a0389ff2372c03ed2d4e1;hp=d08c7a71edabdc0a24cf7906606cb44df3520f9b;hpb=056009fe999768b37cba5e12e9fef9901c856d6a;p=pspp diff --git a/tests/command/insert.sh b/tests/command/insert.sh index d08c7a71ed..f80dc5fc4a 100755 --- a/tests/command/insert.sh +++ b/tests/command/insert.sh @@ -2,7 +2,8 @@ # This program tests the INSERT command -TEMPDIR=/tmp/pspp-tst-$$ +BASETEMPDIR=/tmp/pspp-tst-$$ +TEMPDIR=$BASETEMPDIR/link TESTFILE=$TEMPDIR/`basename $0`.sps # ensure that top_srcdir and top_builddir are absolute @@ -23,11 +24,11 @@ export LANG cleanup() { if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then - echo "NOT cleaning $TEMPDIR" + echo "NOT cleaning $BASETEMPDIR" return ; fi cd / - rm -rf $TEMPDIR + rm -rf $BASETEMPDIR } @@ -54,7 +55,9 @@ pass() exit 0; } -mkdir -p $TEMPDIR +mkdir -p $BASETEMPDIR/target + +ln -s $BASETEMPDIR/target $TEMPDIR cd $TEMPDIR @@ -249,7 +252,6 @@ $TEMPDIR/foo.sps:10: error: DISPLAY: AKSDJ is not a variable name. EOF if [ $? -ne 0 ] ; then fail ; fi - # Test for regression against bug #24569 in which PSPP crashed # upon attempt to insert a nonexistent file. activity="create wrapper 9"