X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fcommand.at;h=e9cbb919a0c661a9ce20d86d92a46b617408489d;hb=8642df034e82487ec7ff476fbfbacbd5b65eb88a;hp=8d65b6fb8c2998bd14a27ee8d5f4d9f9b2174587;hpb=b401615e6db40bf74394839b96600afe3a868a95;p=pspp diff --git a/tests/language/command.at b/tests/language/command.at index 8d65b6fb8c..e9cbb919a0 100644 --- a/tests/language/command.at +++ b/tests/language/command.at @@ -1,3 +1,19 @@ +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([command parser]) dnl Tests for a bug which crashed pspp when given certain invalid input. @@ -13,6 +29,14 @@ command.sps:2: error: EXECUTE: EXECUTE is allowed only after the active dataset ]) AT_CLEANUP +dnl Tests for a bug where FINISH or EXIT wasn't executed until the lexer +dnl read the first token of the next command. +dnl +dnl (If this reecurs, the test will run forever.) +AT_SETUP([FINISH executes immediately]) +AT_CHECK([(echo "FINISH."; while echo ; do true; done) | pspp], [0], [ignore], [ignore]) +AT_CLEANUP + AT_BANNER([ERASE]) AT_SETUP([ERASE -- safer mode])