X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7451638148706f6317975db418cc78e488f420aa..a1d1ab50a00a4d28d6ba7b227ddc6628d5734ce3:/tests/existing.at diff --git a/tests/existing.at b/tests/existing.at index 8dce3187..149499d4 100644 --- a/tests/existing.at +++ b/tests/existing.at @@ -1,6 +1,6 @@ # Exercising Bison on actual grammars. -*- Autotest -*- -# Copyright (C) 1989-1992, 2000-2005, 2007, 2009-2011 Free Software +# Copyright (C) 1989-1992, 2000-2005, 2007, 2009-2012 Free Software # Foundation, Inc. # This program is free software: you can redistribute it and/or modify @@ -35,7 +35,10 @@ dnl time comes, just use sed to drop the line numbers. For now, as LR(1) dnl support is rapidly evolving, let's keep that information to be careful. dnl However, we don't do diffs for canonical LR(1) because the diff is huge. m4_pushdef([AT_LALR1_DIFF_CHECK], -[AT_CHECK([[sed 's/^%define lr.type .*$//' input.y > input-lalr.y]]) +[dnl We need diff -u, which is not portable. +AT_CHECK([diff -u /dev/null /dev/null || exit 77], [0], [ignore]) + +AT_CHECK([[sed 's/^%define lr.type .*$//' input.y > input-lalr.y]]) AT_BISON_CHECK([[--report=all input-lalr.y]], [[0]], [ignore], [ignore]) AT_CHECK([[diff -u input-lalr.output input.output \ | sed -n '/^@@/,$p' | sed 's/^ $//']], @@ -1478,7 +1481,7 @@ AT_TEST_EXISTING_GRAMMAR([[GNU pic (Groff 1.18.1) Grammar]], %token RAND %token SRAND %token COPY -%token THRU +%token THROUGH %token TOP %token BOTTOM %token UPPER @@ -1604,12 +1607,12 @@ placeless_element: {} DELIMITED | COPY TEXT - | COPY TEXT THRU + | COPY TEXT THROUGH {} DELIMITED {} until - | COPY THRU + | COPY THROUGH {} DELIMITED {}