summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-01-24 13:54:12 -0800
committerAkim Demaille <demaille@gostai.com>2012-01-25 10:52:39 +0100
commit7a709ad88d2d25d58f1ddc9f524d8436c7d961b4 (patch)
tree9189eac23336a8724b47f17de3024906d5d18d11
parentc373ab641b69a25bfd5f18b6e4243a7feada5aaf (diff)
downloadbison-7a709ad88d2d25d58f1ddc9f524d8436c7d961b4.tar.gz
tests: port to Solaris 10 'diff -u'
* tests/regression.at (parse-gram.y: LALR = IELR): Port to Solaris 10, where "diff -u X X" outputs "No differences encountered" instead of outputting nothing. Reported by Tomohiro Suzuki in <http://lists.gnu.org/archive/html/bug-bison/2012-01/msg00101.html>. (cherry picked from commit 071ca141ec7987a5eca782227ce70db434a206ab)
-rw-r--r--tests/regression.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regression.at b/tests/regression.at
index e71df138..e04442bf 100644
--- a/tests/regression.at
+++ b/tests/regression.at
@@ -1266,10 +1266,10 @@ AT_SETUP([[parse-gram.y: LALR = IELR]])
# have the same name.
[cp $abs_top_srcdir/src/parse-gram.y input.y]
AT_BISON_CHECK([[-o input.c -Dlr.type=lalr input.y]])
-[mv input.c lalr.c]
+[mv input.c expout]
AT_BISON_CHECK([[-o input.c -Dlr.type=ielr input.y]])
[mv input.c ielr.c]
-AT_CHECK([[diff -u lalr.c ielr.c]])
+AT_CHECK([[cat ielr.c]], [[0]], [[expout]])
AT_CLEANUP