From: Shi W. <sh...@cn...> - 2009-11-16 02:09:22
|
cpuctl_test_fj's case19-22 failed on my x86_64 box. ---------------------------------------------- awk: print $9 awk: ^ syntax error pid 8077 cpu_usage cpuctl_test_fj 1 TFAIL : case19 FAIL awk: print $9 awk: ^ syntax error pid 8104 cpu_usage cpuctl_test_fj 1 TFAIL : case20 FAIL awk: print $9 awk: ^ syntax error pid 8131 cpu_usage cpuctl_test_fj 1 TFAIL : case21 FAIL awk: print $9 awk: ^ syntax error pid 8193 cpu_usage cpuctl_test_fj 1 TFAIL : case22 FAIL ---------------------------------------------- I fixed the syntax error of awk in the following patch. Signed-off-by: Shi Weihua <sh...@cn...> --- --- ltp-full-20091031.orig/testcases/kernel/controllers/cpuctl_fj/run_cpuctl_test_fj.sh 2009-11-02 04:07:14.000000000 -0500 +++ ltp-full-20091031/testcases/kernel/controllers/cpuctl_fj/run_cpuctl_test_fj.sh 2009-11-16 04:51:22.000000000 -0500 @@ -85,7 +85,7 @@ creat_process() get_cpu_usage() { - top -b -n 1 -p $1 | tail -2 | head -1 | awk 'print $9' | awk -F "." '{print $1}' + top -b -n 1 -p $1 | tail -2 | head -1 | awk '{print $9}' | awk -F "." '{print $1}' } kill_all_pid() |