bison-patches
[Top][All Lists]
Advanced

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

[PATCH 9/9] tests: fix incorrect test case


From: Akim Demaille
Subject: [PATCH 9/9] tests: fix incorrect test case
Date: Thu, 12 Aug 2021 10:18:32 +0200

In c2ba260487927a4cdf061fae10fdd1b387ca3d95 ("glr.c: fix signature
when using custom error messages"), I meant to add a test case for C,
not C++.  It does not work in C++.

* tests/calc.at: Run for glr.c, not glr.cc.
---
 tests/calc.at | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/calc.at b/tests/calc.at
index 47ef720c..831a2b08 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -1389,6 +1389,8 @@ m4_define([AT_CHECK_CALC_GLR],
 AT_CHECK_CALC_GLR([%define parse.error detailed %locations %header 
%name-prefix "calc" %verbose])
 AT_CHECK_CALC_GLR([%define parse.error verbose %locations %header %name-prefix 
"calc" %verbose])
 
+AT_CHECK_CALC_GLR([%define parse.error custom %locations %header %name-prefix 
"calc" %verbose])
+
 AT_CHECK_CALC_GLR([%debug])
 AT_CHECK_CALC_GLR([%define parse.error verbose %debug %locations %header 
%name-prefix "calc" %verbose])
 AT_CHECK_CALC_GLR([%define parse.error verbose %debug %locations %header 
%define api.prefix {calc} %define api.token.prefix {TOK_} %verbose])
@@ -1469,8 +1471,6 @@ m4_define([AT_CHECK_CALC_GLR_CC],
 AT_CHECK_CALC_GLR_CC([%define parse.error verbose %debug %name-prefix "calc" 
%verbose])
 AT_CHECK_CALC_GLR_CC([%define parse.error verbose %debug %name-prefix "calc" 
%define api.token.prefix {TOK_} %verbose])
 
-AT_CHECK_CALC_GLR_CC([%define parse.error custom %locations %header 
%name-prefix "calc" %verbose])
-
 AT_CHECK_CALC_GLR_CC([%locations %header %define parse.error verbose %debug 
%name-prefix "calc" %verbose %parse-param {semantic_value *result}{int 
*count}{int *nerrs}])
 AT_CHECK_CALC_GLR_CC([%locations %header %define parse.error verbose %debug 
%define api.prefix {calc} %verbose %parse-param {semantic_value *result}{int 
*count}{int *nerrs}])
 
-- 
2.32.0




reply via email to

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