[LTP] [PATCH RFC 5/9] ftrace_regression: add a new testcase

Cyril Hrubis chrubis@suse.cz
Thu Mar 17 17:50:20 CET 2016


Hi!
> +###############################################################################
> +#                                                                             #
> +# Copyright (c) 2015, Red Hat Inc.                                            #
> +#                                                                             #
> +# This program is free software; you can redistribute it and/or modify it     #
> +# under the terms of the GNU General Public License as published by the Free  #
> +# Software Foundation; either version 2 of the License, or (at your option)   #
> +# any later version.                                                          #
> +#                                                                             #
> +# PURPOSE: check signal:signal_generate gives 2 more fields: grp res          #
> +#                                                                             #
> +# This testcase is verifing signal events change:                             #
> +#        6c303d3 tracing: let trace_signal_generate() report more info...     #
> +#        163566f tracing: send_sigqueue() needs trace_signal_generate() too   #
> +#                                                                             #
> +###############################################################################
> +
> +
> +# Set envent
> +echo 'signal:signal_generate' > $TRACING_PATH/set_event
> +
> +echo 1 > $TRACING_PATH/tracing_on
> +
> +echo > $TRACING_PATH/trace
> +
> +sleep 10

Why sleep 10 here?

> +grep -q 'grp=[0-9] res=[0-9]' $TRACING_PATH/trace
> +if [ $? -eq 0 ]; then
> +	exit 0
> +else
> +	exit 1
> +fi

Use test.sh and tst_resm instead.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list