tests: enlarge the allowed duration for calc tests

Hydra "often" fails on this test:

252. calc.at:658: 252. Calculator %glr-parser api.pure
parse.error=verbose %debug %locations %defines api.prefix="calc"
%verbose %yacc %parse-param {semantic_value *result}
%parse-param {int *count} (calc.at:658): FAILED

* tests/calc.at: Give 200s instead of 100s.
Use AT_DEBUG_IF.
This commit is contained in:
Akim Demaille
2013-02-11 09:07:25 +01:00
parent 848bcc288d
commit 312d0d654f

View File

@@ -72,10 +72,12 @@ main (int argc, const char **argv)
int count = 0; int count = 0;
int status; int status;
/* This used to be alarm (10), but that isn't enough time for /* This used to be alarm (10), but that isn't enough time for a July
a July 1995 vintage DEC Alphastation 200 4/100 system, 1995 vintage DEC Alphastation 200 4/100 system, according to
according to Nelson H. F. Beebe. 100 seconds is enough. */ Nelson H. F. Beebe. 100 seconds was enough for regular users,
alarm (100); but the Hydra build farm, which is heavily loaded needs more. */
alarm (200);
if (argc == 2) if (argc == 2)
input = fopen (argv[1], "r"); input = fopen (argv[1], "r");
@@ -88,8 +90,7 @@ main (int argc, const char **argv)
return 3; return 3;
} }
]AT_SKEL_CC_IF([], [m4_bmatch([$4], [%debug], ]AT_SKEL_CC_IF([], [AT_DEBUG_IF([ ]AT_NAME_PREFIX[debug = 1;])])[
[ ]AT_NAME_PREFIX[debug = 1;])])[
status = ]AT_NAME_PREFIX[parse (]AT_PARAM_IF([[&result, &count]])[); status = ]AT_NAME_PREFIX[parse (]AT_PARAM_IF([[&result, &count]])[);
if (fclose (input)) if (fclose (input))
perror ("fclose"); perror ("fclose");