From: Subrata <sub...@us...> - 2008-04-20 17:29:01
|
Update of /cvsroot/ltp/ltp/testcases/realtime/func/pi_perf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19735/ltp/testcases/realtime/func/pi_perf Modified Files: pi_perf.c Log Message: Some tests have a configurable number of iterations. However those same tests which do calculate quantiles need a number of iterations higher than 100. Signed-off-by: Sebastien Dugue <seb...@bu...>. Acked-by: Chirag <ch...@li...>. Index: pi_perf.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/func/pi_perf/pi_perf.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pi_perf.c 20 Apr 2008 17:20:17 -0000 1.7 --- pi_perf.c 20 Apr 2008 17:28:48 -0000 1.8 *************** *** 227,230 **** --- 227,235 ---- 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) { |