ACK: [PATCH][FWTS-TEST] Simple detection of segmentation faults

Alex Hung alex.hung at canonical.com
Mon Jul 8 02:02:40 UTC 2013


On 07/02/2013 06:32 AM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> fwts tests should detect any segmentation faults in fwts or
> in the fwts child processes.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   test.sh | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/test.sh b/test.sh
> index 9d4a9ba..7682d3d 100755
> --- a/test.sh
> +++ b/test.sh
> @@ -25,7 +25,12 @@ do
>   	do
>   		if [ -x $J ]; then
>   			echo "TEST: $I, subtest $J" >> $FAILURE_LOG
> +			ulimit -c unlimited
> +			rm -f core*
>   			bash $J		
> +			if [ -e core* ]; then
> +				echo "FAILED: Segmentation fault."
> +			fi
>   			#
>   			# We can check for 0 (pass) or non-zero (fail)
>   			#
>

Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list