In case the file defining functions fails to load, the function setup() will
run the setup utility, so changing it to do_setup().
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/parameters.sh
===================================================================
--- ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/parameters.sh
+++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/parameters.sh
@@ -69,7 +69,7 @@ cleanup ()
# Create /dev/cpuctl & mount the cgroup file system with cpu
controller
#clean any group created eralier (if any)
-setup ()
+do_setup ()
{
if [ -e /dev/cpuctl ]
then
Index:
ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh
===================================================================
---
ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh
+++
ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh
@@ -133,7 +133,7 @@ usage ()
echo "TEST $TEST_NUM: CPU CONTROLLER STRESS TESTING";
echo "RUNNING SETUP.....";
- setup;
+ do_setup;
# Trap the signal from any abnormaly terminated task
# and kill all others and let cleanup be called
Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh
===================================================================
---
ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh
+++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh
@@ -88,7 +88,7 @@ NUM_CPUS=`cat /proc/cpuinfo | grep -w pr
esac
echo "TEST $TEST_NUM: CPU CONTROLLER TESTING";
echo "RUNNING SETUP.....";
- setup;
+ do_setup;
# Trap the signal from any abnormaly terminated task
# and kill all others and let cleanup be called
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list