diff options
author | Akim Demaille <akim@epita.fr> | 2002-04-23 09:06:42 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2002-04-23 09:06:42 +0000 |
commit | 1207eeacc2494f6b0c29b08aa224cf5c892a68f1 (patch) | |
tree | 4bd17b03837e0ff7a32d683e16a329c78f3558dd /tests/sets.at | |
parent | 8e521837dc2065ec8960cefff6c1cbb5c33498dc (diff) | |
download | bison-1207eeacc2494f6b0c29b08aa224cf5c892a68f1.tar.gz |
* tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
* tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
location with columns.
* tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
All reported by Paul Eggert.
Diffstat (limited to 'tests/sets.at')
-rw-r--r-- | tests/sets.at | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/sets.at b/tests/sets.at index 7203dca1..64402c20 100644 --- a/tests/sets.at +++ b/tests/sets.at @@ -1,5 +1,5 @@ # Exercising Bison Grammar Sets. -*- Autotest -*- -# Copyright 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002 Free Software Foundation, Inc. # 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 @@ -16,6 +16,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. + # AT_EXTRACT_SETS(INPUT, OUTPUT) # ------------------------------ # Extract the information about the grammar sets from a bison @@ -25,10 +26,10 @@ m4_define([AT_EXTRACT_SETS], [AT_DATA([extract.sed], [[#n /^NULLABLE$/ { - :nullable + :null p n - /^[ ]*$/! b nullable + /^[ ]*$/! b null } /^FIRSTS$/ { :firsts @@ -37,16 +38,16 @@ m4_define([AT_EXTRACT_SETS], /^[ ]*$/! b firsts } /^FDERIVES$/ { - :fderives + :fderiv p n - /^[ ]*$/! b fderives + /^[ ]*$/! b fderiv } /^DERIVES$/ { - :derives + :deriv p n - /^[ ]*$/! b derives + /^[ ]*$/! b deriv } ]]) AT_CHECK([sed -f extract.sed $1], 0, [stdout]) |