mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: do not use grep -q
Reported by Daniel Galloway. http://lists.gnu.org/archive/html/bug-bison/2013-08/msg00020.html * tests/java.at: Ignore grep's output instead.
This commit is contained in:
3
NEWS
3
NEWS
@@ -2,6 +2,9 @@ GNU Bison NEWS
|
|||||||
|
|
||||||
* Noteworthy changes in release ?.? (????-??-??) [?]
|
* Noteworthy changes in release ?.? (????-??-??) [?]
|
||||||
|
|
||||||
|
** Bug fixes
|
||||||
|
|
||||||
|
Portability issues in the test suite.
|
||||||
|
|
||||||
* Noteworthy changes in release 3.0 (2013-07-25) [stable]
|
* Noteworthy changes in release 3.0 (2013-07-25) [stable]
|
||||||
|
|
||||||
|
|||||||
1
THANKS
1
THANKS
@@ -31,6 +31,7 @@ Cris van Pelt cris@amf03054.office.wxs.nl
|
|||||||
Csaba Raduly csaba_22@yahoo.co.uk
|
Csaba Raduly csaba_22@yahoo.co.uk
|
||||||
Dagobert Michelsen dam@baltic-online.de
|
Dagobert Michelsen dam@baltic-online.de
|
||||||
Daniel Frużyński daniel@poradnik-webmastera.com
|
Daniel Frużyński daniel@poradnik-webmastera.com
|
||||||
|
Daniel Galloway dg1751@att.com
|
||||||
Daniel Hagerty hag@gnu.org
|
Daniel Hagerty hag@gnu.org
|
||||||
David J. MacKenzie djm@gnu.org
|
David J. MacKenzie djm@gnu.org
|
||||||
David Kastrup dak@gnu.org
|
David Kastrup dak@gnu.org
|
||||||
|
|||||||
@@ -725,18 +725,23 @@ AT_CLEANUP
|
|||||||
|
|
||||||
AT_SETUP([Java constructor init and init_throws])
|
AT_SETUP([Java constructor init and init_throws])
|
||||||
|
|
||||||
|
m4_pushdef([AT_Witness],
|
||||||
|
[super("Test Thread"); if (true) throw new InterruptedException();])
|
||||||
|
|
||||||
AT_CHECK_JAVA_MINIMAL([[
|
AT_CHECK_JAVA_MINIMAL([[
|
||||||
%define extends {Thread}
|
%define extends {Thread}
|
||||||
%code init { super("Test Thread"); if (true) throw new InterruptedException(); }
|
%code init { ]AT_Witness[ }
|
||||||
%define init_throws {InterruptedException}
|
%define init_throws {InterruptedException}
|
||||||
%lex-param {int lex_param}]])
|
%lex-param {int lex_param}]])
|
||||||
AT_CHECK([[grep -q 'super("Test Thread"); if (true) throw new InterruptedException();' YYParser.java]])
|
AT_CHECK([[grep ']AT_Witness[' YYParser.java]], 0, [ignore])
|
||||||
|
|
||||||
AT_CHECK_JAVA_MINIMAL_W_LEXER([[
|
AT_CHECK_JAVA_MINIMAL_W_LEXER([[
|
||||||
%define extends {Thread}
|
%define extends {Thread}
|
||||||
%code init { super("Test Thread"); if (true) throw new InterruptedException(); }
|
%code init { ]AT_Witness[ }
|
||||||
%define init_throws {InterruptedException}]], [], [[return EOF;]])
|
%define init_throws {InterruptedException}]], [], [[return EOF;]])
|
||||||
AT_CHECK([[grep -q 'super("Test Thread"); if (true) throw new InterruptedException();' YYParser.java]])
|
AT_CHECK([[grep ']AT_Witness[' YYParser.java]], 0, [ignore])
|
||||||
|
|
||||||
|
m4_popdef([AT_Witness])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user