[LTP] [PATCH V5] controllers/pids: Add new testcases
Alexey Kodanev
alexey.kodanev@oracle.com
Thu Nov 26 12:24:40 CET 2015
Hi,
On 11/26/2015 01:07 PM, Cedric Hnyda wrote:
> Created new testcases to test the pids controller
> which is used to stop any new tasks from being fork()'d
> after a certain limit is reached.
>
>
> +
> +usage()
> +{
> + echo "usage: ./pids01 caseno max"
> + tst_resm TFAIL "invalid parameters"
The messages could be merged into one, no need to print two:
tst_resm TFAIL "invalid parameters, usage: ..."
> +
> +start_pids_tasks2()
> +{
> + nb=$1
> + for i in `seq 1 $nb`; do
> + pids_task2 &
> + echo $! > $testpath/tasks
> + done
> +
> + if [ $(cat "$testpath/tasks" | wc -l) -ne $nb ]; then
> + tst_resm TBROK "..."
Please make it more informative :)
Thanks,
Alexey
More information about the Ltp
mailing list