Hi,

msgctl10() un-necessarily eats up all the PIDs of the system leading to
system becoming un-responsive. The changed no.s would better do the job.

Signed-off-by: Subrata Modak<[email protected]>
---

--- ltp-full-20100131/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c.orig      
2010-02-19 17:59:23.000000000 +0530
+++ ltp-full-20100131/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c   
2010-02-19 18:01:13.000000000 +0530
@@ -65,12 +65,8 @@ extern int Tst_count;                /* Test Case coun
 
 int exp_enos[] = { 0 };                /* List must end with 0 */
 
-#ifndef CONFIG_COLDFIRE
-#define MAXNPROCS      1000000 /* This value is set to an arbitrary high 
limit. */
-#else
-#define MAXNPROCS       100000 /* Coldfire can't deal with 1000000 */
-#endif
-#define MAXNREPS       100000
+#define MAXNPROCS      10000   /*These should be sufficient*/
+#define MAXNREPS       10000   /*Else they srewup the system un-necessarily*/
 #define FAIL           1
 #define PASS           0
 

---
Regards--
Subrata


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to