X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/230a3db428622bb964807111b46812879b7ee726..9bcffa0c13d1abee13433f14cdb785cbb960425c:/tests/calc.at diff --git a/tests/calc.at b/tests/calc.at index 836c3a33..58e7e895 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -45,7 +45,7 @@ m4_define([_AT_DATA_CALC_Y], [m4_fatal([$0: Invalid arguments: $@])])dnl m4_pushdef([AT_CALC_MAIN], -[#include /* abort */ +[#include #if HAVE_UNISTD_H # include #else @@ -98,10 +98,8 @@ main (int argc, const char **argv) status = ]AT_NAME_PREFIX[parse (]AT_PARAM_IF([[&result, &count]])[); if (fclose (input)) perror ("fclose"); - if (global_result != result) - abort (); - if (global_count != count) - abort (); + assert (global_result == result); + assert (global_count == count); return status; } ]])