Hi Subrata,
Please accept the patch below.
Thanks,
Gowri
---
realtime: fix parameter name clash in pi-test7 due to memlock option added
Below patch just renames the parameter name for number of mid priority threads
in pi-test7 from -m to -x. Original one clashes with our common memlock option
used across all RT tests.
Also, pi-test7 is already disabled in our default run profile, so this patch
can silently update the test without any impact on any other test.
Testing Informations:
Tested pi-test7 binary with the patch for the changes.
Signed-off-by: Gowrishankar <[email protected]>
Tested-by: Gowrishankar <[email protected]>
Acked-by: Sripathi Kodi <[email protected]>
---
Index: ltp-full-20090630/testcases/realtime/func/pi-tests/testpi-7.c
===================================================================
--- ltp-full-20090630.orig/testcases/realtime/func/pi-tests/testpi-7.c 2009-07-03 14:34:13.000000000 +0530
+++ ltp-full-20090630/testcases/realtime/func/pi-tests/testpi-7.c 2009-07-03 14:38:14.000000000 +0530
@@ -80,7 +80,7 @@
printf("testpi-7 specific options:\n");
printf(" -i# #: number of iterations\n");
printf(" -f #: Use flag mutex\n");
- printf(" -m# #:number of mid priority threads\n");
+ printf(" -x# #:number of mid priority threads\n");
}
int parse_args(int c, char *v)
@@ -96,7 +96,7 @@
case 'i':
iterations = atoi(v);
break;
- case 'm':
+ case 'x':
med_threads = atoi(v);
break;
default:
@@ -246,11 +246,11 @@
int i,numcpus;
setup();
- rt_init("hfi:m:", parse_args, argc, argv);
+ rt_init("hfi:x:", parse_args, argc, argv);
if (!med_threads) {
printf("This test requires that at least NRCPUS medium priority threads run\n");
- printf("If it is run bound to a single CPU, you can specify -m 1\n");
+ printf("If it is run bound to a single CPU, you can specify -x 1\n");
printf("No User input , using default value for NRCPUS");
numcpus = sysconf(_SC_NPROCESSORS_ONLN);
med_threads = numcpus;
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list