X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/68e11668e4b4c3cd9564b6a920656ace3768ec59..fd19f2714f56e972cc03dba474399a89af630699:/tests/actions.at diff --git a/tests/actions.at b/tests/actions.at index 22d51d96..05432aee 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -196,7 +196,7 @@ m4_ifval([$6], [%union %printer { - ]AT_LALR1_CC_IF([cdebug_ << $$;], + ]AT_LALR1_CC_IF([debug_stream () << $$;], [fprintf (yyoutput, "%d", $$)])[; } input line thing 'x' 'y' @@ -320,7 +320,8 @@ static bool yydebug; int yyparse () { - yy::Parser parser (yydebug); + yy::Parser parser; + parser.set_debug_level (yydebug); return parser.parse (); } ], @@ -444,11 +445,12 @@ Parsing FAILED. ]) -# AT_CHECK_PRINTER_AND_DESTRUCTOR([BISON-OPTIONS], [UNION-FLAG]) -# -------------------------------------------------------------- +# AT_CHECK_PRINTER_AND_DESTRUCTOR([BISON-OPTIONS], [UNION-FLAG], [SKIP_FLAG]) +# --------------------------------------------------------------------------- m4_define([AT_CHECK_PRINTER_AND_DESTRUCTOR], [AT_SETUP([Printers and Destructors $2: $1]) +$3 _AT_CHECK_PRINTER_AND_DESTRUCTOR($[1], $[2], $[3], $[4], [%error-verbose %debug @@ -462,7 +464,12 @@ AT_CLEANUP AT_CHECK_PRINTER_AND_DESTRUCTOR([]) AT_CHECK_PRINTER_AND_DESTRUCTOR([], [with union]) + +# These tests currently fail on a Debian GNU/Linux 3.0r2 x86 host, +# but the 2nd test succeeds on a Solaris 9 sparc hosts (Forte 7 cc). +# Skip them until we figure out what the problem is. AT_CHECK_PRINTER_AND_DESTRUCTOR([%defines %skeleton "lalr1.cc"]) AT_CHECK_PRINTER_AND_DESTRUCTOR([%defines %skeleton "lalr1.cc"], [with union]) + AT_CHECK_PRINTER_AND_DESTRUCTOR([%glr-parser]) AT_CHECK_PRINTER_AND_DESTRUCTOR([%glr-parser], [with union])