[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/8] tests: more logs.
From: |
Akim Demaille |
Subject: |
[PATCH 1/8] tests: more logs. |
Date: |
Wed, 4 Jul 2012 16:52:57 +0200 |
* tests/headers.at (Several parsers): Here.
---
tests/headers.at | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/tests/headers.at b/tests/headers.at
index 970d3f1..4660f97 100644
--- a/tests/headers.at
+++ b/tests/headers.at
@@ -166,7 +166,8 @@ AT_BISON_OPTION_POPDEFS
])
AT_DATA([main.cc],
-[[extern "C"
+[[#define ECHO(S) std::cerr << #S": " << S << std::endl;
+extern "C"
{
#include "x1.h"
#include "x2.h"
@@ -175,18 +176,18 @@ AT_DATA([main.cc],
}
#include "x5.hh"
//#include "x6.hh"
+
int
main (void)
{
- int errs = 0;
- errs += x1_parse();
- errs += x2_parse();
- errs += x3_parse();
- errs += x4_parse();
+ ECHO(x1_parse());
+ ECHO(x2_parse());
+ ECHO(x3_parse());
+ ECHO(x4_parse());
x5_::parser p5;
- errs += p5.parse();
-// errs += x6_parse();
- return !!errs;
+ ECHO(p5.parse());
+// ECHO(x6_parse());
+ return 0;
}
]])
@@ -204,6 +205,12 @@ x2
x3
x4
x5
+]],
+[[x1_parse(): 0
+x2_parse(): 0
+x3_parse(): 0
+x4_parse(): 0
+p5.parse(): 0
]])
AT_CLEANUP
--
1.7.11.1
- [PATCH 0/8] Various improvements prompted by api.prefix, Akim Demaille, 2012/07/04
- [PATCH 3/8] c++: fewer #includes in the headers., Akim Demaille, 2012/07/04
- [PATCH 5/8] api.prefix: do not use #define to handle YYSTYPE_IS_TRIVIAL etc., Akim Demaille, 2012/07/04
- [PATCH 7/8] glr.cc: do not override C++ definitions by C macros., Akim Demaille, 2012/07/04
- [PATCH 1/8] tests: more logs.,
Akim Demaille <=
- [PATCH 6/8] YYLLOC_DEFAULT: factor, and don't export it in headers., Akim Demaille, 2012/07/04
- [PATCH 2/8] glr.cc: formatting changes., Akim Demaille, 2012/07/04
- [PATCH 4/8] tests: portability fixes., Akim Demaille, 2012/07/04
- [PATCH 8/8] tests: headers.at: strengthen., Akim Demaille, 2012/07/04