From: Akim Demaille Date: Mon, 12 Nov 2012 08:49:49 +0000 (+0100) Subject: tests: fix syntax-check errors X-Git-Tag: v2.7.90~273 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2c08dc504c9f4ed12414a130bcebff8f0d3f43df?hp=fbca394ee1416fcfa41f839abc313a037732e84d tests: fix syntax-check errors Reported by Théophile Ranquet. * tests/c++.at: Use AT_PARSER_CHECK. Avoid using "strcmp", which triggers an error from syntax-check. --- diff --git a/tests/c++.at b/tests/c++.at index 0d50281a..f5e5f463 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -177,8 +177,8 @@ main () AT_BISON_CHECK([-o list.cc list.yy]) AT_COMPILE_CXX([list]) -AT_CHECK([./list], 0, - [(0, 1, 2, 4) +AT_PARSER_CHECK([./list], 0, +[(0, 1, 2, 4) ]) AT_BISON_OPTION_POPDEFS @@ -687,7 +687,7 @@ main (int argc, const char *argv[]) input = argv[1]; break; case 3: - assert (!strcmp (argv[1], "--debug")); + assert (std::string(argv[1]) == "--debug"); debug = 1; input = argv[2]; break;