X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Finsert.sh;fp=tests%2Fcommand%2Finsert.sh;h=f80dc5fc4a0df3f1c4250ef32e0bf3bb45e7a524;hb=a1efcf97ca2f75f4be6a0389ff2372c03ed2d4e1;hp=be7f9e08c565c52677a4e0704f92acd86b84a948;hpb=486e95574d796cd1ce703aff4bc5b8f9f3021333;p=pspp-builds.git diff --git a/tests/command/insert.sh b/tests/command/insert.sh index be7f9e08..f80dc5fc 100755 --- a/tests/command/insert.sh +++ b/tests/command/insert.sh @@ -252,4 +252,23 @@ $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" +cat < $TESTFILE +INSERT + FILE='$TEMPDIR/nonexistent' + ERROR=CONTINUE. + . + +LIST. + +EOF +if [ $? -ne 0 ] ; then no_result ; fi + +#This command should fail +activity="run program 7" +$SUPERVISOR $PSPP --testing-mode -o raw-ascii $TESTFILE > /dev/null +if [ $? -eq 0 ] ; then no_result ; fi + pass;