[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] tests: fix AT_CHECK_CALC.
From: |
Akim Demaille |
Subject: |
[PATCH 3/6] tests: fix AT_CHECK_CALC. |
Date: |
Fri, 22 Jun 2012 12:54:12 +0200 |
* tests/calc.at (AT_CHECK_CALC): Contrary to its documentation,
the test was skipped if given a second argument.
Unused feature, remove it.
---
tests/calc.at | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/calc.at b/tests/calc.at
index 77f70cd..bd52d7c 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -518,16 +518,15 @@ AT_CHECK([cat stderr], 0, [expout])
])
-# AT_CHECK_CALC([BISON-OPTIONS, [EXPECTED-TO-FAIL]])
-# --------------------------------------------------
+# AT_CHECK_CALC([BISON-OPTIONS])
+# ------------------------------
# Start a testing chunk which compiles `calc' grammar with
# BISON-OPTIONS, and performs several tests over the parser.
-# However, if EXPECTED-TO-FAIL is nonempty, this test is expected to fail.
m4_define([AT_CHECK_CALC],
-[# We use integers to avoid dependencies upon the precision of doubles.
-AT_SETUP([Calculator $1])
+[m4_ifval([$2], [m4_fatal([$0: expected a single argument])])
-m4_ifval([$2], [AT_CHECK([exit 77])])
+# We use integers to avoid dependencies upon the precision of doubles.
+AT_SETUP([Calculator $1])
AT_BISON_OPTION_PUSHDEFS([$1])
--
1.7.10.4
- [PATCH 0/6] tests: more refactoring (in maint), Akim Demaille, 2012/06/27
- Re: [PATCH 0/6] tests: more refactoring (in maint), Akim Demaille, 2012/06/25
- [PATCH 2/6] tests: improve infrastructure, Akim Demaille, 2012/06/27
- [PATCH 3/6] tests: fix AT_CHECK_CALC.,
Akim Demaille <=
- [PATCH 6/6] tests: more uniformity., Akim Demaille, 2012/06/27
- [PATCH 1/6] tests: factor., Akim Demaille, 2012/06/27
- [PATCH 4/6] tests: handle locations in the generic yyerror functions., Akim Demaille, 2012/06/27
- [PATCH 5/6] tests: handle locations in a more generic way., Akim Demaille, 2012/06/27
- Re: [PATCH 0/6] tests: more refactoring (in maint), Akim Demaille, 2012/06/27