From a98b92f98d5554dbabb2e1009815f9ffab75f51c Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Oct 11 2011 17:49:58 +0000 Subject: - round the delay values up to a multiple of 50, in case the tests take longer to run --- diff --git a/tests/010-iterate/run.sh b/tests/010-iterate/run.sh index f32e4f7..62fac09 100755 --- a/tests/010-iterate/run.sh +++ b/tests/010-iterate/run.sh @@ -284,6 +284,7 @@ $toolsdir/iterate ca3 entry3 NEED_CSR,GENERATING_CSR $toolsdir/iterate ca3 entry3 NEED_TO_SUBMIT,SUBMITTING $toolsdir/iterate ca3 entry3 "" +# Note! The "iterate" harness rounds delay times up to the next multiple of 50. for interval in 0 30 1800 3600 7200 86000 86500 604800 1000000 ; do for ca in ca-unreachable ca-ask-again ca-unconfigured ; do echo diff --git a/tests/tools/iterate.c b/tests/tools/iterate.c index 7d7c691..829528d 100644 --- a/tests/tools/iterate.c +++ b/tests/tools/iterate.c @@ -18,6 +18,7 @@ #include "../../src/config.h" #include +#include #include #include #include @@ -128,7 +129,7 @@ main(int argc, char **argv) talloc_free(tmp); } if (when == cm_time_delay) { - printf("delay=%ld\n", (long) delay); + printf("delay=%ld\n", (long) howmany(delay, 50) * 50); } /* If we didn't find a match, stop here. */ if (*p == '\0') {