X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d4bdb9167769a7247ac7c93c03fbe9ff7c238d34..34cdeddfa54df8c85b20bf013a0b82053a5148f2:/tests/skeletons.at diff --git a/tests/skeletons.at b/tests/skeletons.at index 0a9c3677..c08ccd81 100644 --- a/tests/skeletons.at +++ b/tests/skeletons.at @@ -1,28 +1,26 @@ # Checking skeleton support. -*- Autotest -*- # Copyright (C) 2007 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify +# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - +# # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . AT_BANNER([[Skeleton Support.]]) ## ------------------------------ ## -## relative skeleton file names. ## +## Relative skeleton file names. ## ## ------------------------------ ## -AT_SETUP([[relative skeleton file names]]) +AT_SETUP([[Relative skeleton file names]]) AT_CHECK([[mkdir tmp]]) @@ -79,10 +77,10 @@ AT_CLEANUP ## ------------------------------- ## -## installed skeleton file names. ## +## Installed skeleton file names. ## ## ------------------------------- ## -AT_SETUP([[installed skeleton file names]]) +AT_SETUP([[Installed skeleton file names]]) m4_pushdef([AT_GRAM], [[%{ @@ -143,18 +141,17 @@ m4_popdef([AT_GRAM]) AT_CLEANUP -## ---------------- ## -## @gettext<...@>. ## -## ---------------- ## +## ------------------------------------------------------ ## +## %define Boolean variables: invalid skeleton defaults. ## +## ------------------------------------------------------ ## + +AT_SETUP([[%define Boolean variables: invalid skeleton defaults]]) -AT_SETUP([[@gettext<...@>]]) +AT_CHECK([[mkdir tmp]]) AT_DATA([[skel.c]], -[[m4@&t@_divert_push(0)d@&t@nl -@output(b4_parser_file_name@)d@&t@nl -b4_warn([[@gettext]])d@&t@nl -`@gettext' -m4@&t@_divert_pop(0) +[[b4_percent_define_default([[foo]], [[bogus value]]) +b4_percent_define_flag_if([[foo]]) ]]) AT_DATA([[input.y]], @@ -163,13 +160,10 @@ AT_DATA([[input.y]], start: ; ]]) -AT_CHECK([[LC_ALL= LC_MESSAGES= LANGUAGE=fr LANG=fr_FR bison input.y]], [[0]], -[], -[[input.y: AVERTISSEMENT: ne peut fermer le fichier -]]) - -AT_CHECK([[cat input.tab.c]], [[0]], -[[`ne peut fermer le fichier' +AT_CHECK([[bison input.y]], [[1]], [[]], +[[[Bison:b4_percent_define_default]:0.0: invalid value for %define Boolean variable `foo' ]]) AT_CLEANUP + +