bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/5] tests: fix usage of AT_PARSER_CHECK


From: Akim Demaille
Subject: [PATCH 2/5] tests: fix usage of AT_PARSER_CHECK
Date: Sat, 12 Jan 2019 09:41:28 +0100

The parser must be the first command.  Caught by syntax-check.

* tests/c++.at: here.
---
 tests/c++.at | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/tests/c++.at b/tests/c++.at
index 02d42a22..fe803419 100644
--- a/tests/c++.at
+++ b/tests/c++.at
@@ -1015,19 +1015,22 @@ AT_FOR_EACH_CXX([
 
   # Leave enough valid tokens to make sure we recovered from the
   # previous error, otherwise we might hide some error messages
-  # (discarded during error recovery).
-  AT_PARSER_CHECK([[echo "asaaalaa" | ./input ]], [[0]], [[]],
+  # (discarded during error recoevery).
+  echo "asaaalaa" >in
+  AT_PARSER_CHECK([[./input < in]], [[0]], [[]],
 [[error: invalid expression
 caught error
 error: invalid character
 caught error
 ]])
 
-  AT_PARSER_CHECK([[echo "!as" | ./input ]], [1], [],
+  echo "!as" >in
+  AT_PARSER_CHECK([[./input < in]], [1], [],
 [[error: invalid expression
 ]])
 
-  AT_PARSER_CHECK([[echo "!al" | ./input ]], [1], [],
+  echo "!al" >in
+  AT_PARSER_CHECK([[./input < in]], [1], [],
 [[error: invalid character
 ]])
 
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]