X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a7867f53b3d63c94a5f73ffd48629069919ab3d4..7b30971d7b915f5d9f7bccd24ab5f5b0e18680e1:/tests/skeletons.at diff --git a/tests/skeletons.at b/tests/skeletons.at index 79f903ee..36a82b3f 100644 --- a/tests/skeletons.at +++ b/tests/skeletons.at @@ -16,13 +16,13 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. -AT_BANNER([[Skeletons Support.]]) +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]]) @@ -78,11 +78,11 @@ AT_CHECK([[cat input-cmd-line.tab.c]], [[0]], AT_CLEANUP -## ------------------------------ ## -## installed skeleton file name. ## -## ------------------------------ ## +## ------------------------------- ## +## Installed skeleton file names. ## +## ------------------------------- ## -AT_SETUP([[installed skeleton file name]]) +AT_SETUP([[Installed skeleton file names]]) m4_pushdef([AT_GRAM], [[%{ @@ -141,3 +141,31 @@ AT_PARSER_CHECK([[./input-gram]], [[1]], [], m4_popdef([AT_GRAM]) AT_CLEANUP + + +## ------------------------------------------------------ ## +## %define boolean variables: invalid skeleton defaults. ## +## ------------------------------------------------------ ## + +AT_SETUP([[%define boolean variables: invalid skeleton defaults]]) + +AT_CHECK([[mkdir tmp]]) + +AT_DATA([[skel.c]], +[[b4_percent_define_default([[foo]], [[bogus value]]) +b4_percent_define_flag_if([[foo]]) +]]) + +AT_DATA([[input.y]], +[[%skeleton "./skel.c" +%% +start: ; +]]) + +AT_CHECK([[bison input.y]], [[1]], [[]], +[[[Bison:b4_percent_define_default]:0.0: invalid value for %define boolean variable `foo' +]]) + +AT_CLEANUP + +