* Sebastien Dugue <[EMAIL PROTECTED]> [2008-04-17 13:38:41]:
> Some tests have a configurable number of iterations. However those
> same tests which do calculate quantiles need a number of iterations
> higher than 100.
>
> Add a check to those tests:
> testcases/realtime/func/periodic_cpu_load/periodic_cpu_load_single.c
> testcases/realtime/func/periodic_cpu_load/periodic_cpu_load.c
> testcases/realtime/func/pi_perf/pi_perf.c
>
> Signed-off-by: Sebastien Dugue <[EMAIL PROTECTED]>
> Cc: Darren Hart <[EMAIL PROTECTED]>
> Cc: Tim Chavez <[EMAIL PROTECTED]>
Acked-by: Chirag <[EMAIL PROTECTED]>
> ---
> .../func/periodic_cpu_load/periodic_cpu_load.c | 3 ++-
> .../periodic_cpu_load/periodic_cpu_load_single.c | 5 +++++
> testcases/realtime/func/pi_perf/pi_perf.c | 5 +++++
> 3 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load.c
> b/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load.c
> index 8ab1214..0a5b9c4 100644
> --- a/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load.c
> +++ b/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load.c
> @@ -175,7 +175,8 @@ int main(int argc, char *argv[])
> rt_init("jhi:", parse_args, argc, argv);
>
> if (iterations < 100) {
> - fprintf(stderr, "Iteration cannot be less than 100.\n");
> + fprintf(stderr, "Number of iteration cannot be less than
> 100.\n");
> + exit(1);
> }
>
> printf("------------------------------------\n");
> diff --git
> a/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load_single.c
> b/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load_single.c
> index 458019c..2c141eb 100644
> --- a/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load_single.c
> +++ b/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load_single.c
> @@ -202,6 +202,11 @@ int main(int argc, char *argv[])
>
> rt_init("f:jhi:r:t:c:", parse_args, argc, argv);
>
> + if (iterations < 100) {
> + printf("Number of iterations cannot be less than 100\n");
> + exit(1);
> + }
> +
> if (!period || !prio | !calc_loops) {
> usage();
> exit(1);
> diff --git a/testcases/realtime/func/pi_perf/pi_perf.c
> b/testcases/realtime/func/pi_perf/pi_perf.c
> index 031fefe..79b97d5 100644
> --- a/testcases/realtime/func/pi_perf/pi_perf.c
> +++ b/testcases/realtime/func/pi_perf/pi_perf.c
> @@ -229,6 +229,11 @@ int main(int argc, char *argv[])
>
> rt_init("hi:n:w:", parse_args, argc, argv);
>
> + if (iterations < 100) {
> + printf("Number of iterations cannot be less than 100\n");
> + exit(1);
> + }
> +
> busy_work_time = low_work_time;
> if (num_busy == -1) {
> /* Number of busy threads = No. of CPUs */
> --
> 1.5.4.rc2.84.gf85fd-dirty
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
--
Cheers,
Chirag Jog
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list