On Wed, Jul 06, 2016 at 03:49:23PM +0000, Fabien Siron wrote:
[...]
> diff --git a/tests/netlink_protocol.test b/tests/netlink_protocol.test
> new file mode 100755
> index 0000000..d3c31b1
> --- /dev/null
> +++ b/tests/netlink_protocol.test
> @@ -0,0 +1,38 @@
> +#!/bin/sh
> +#
> +# Check decoding of netlink protocol.
> +#
> +# Copyright (c) 2014 Masatake YAMATO <yam...@redhat.com>
> +# Copyright (c) 2014-2016 Dmitry V. Levin <l...@altlinux.org>
> +# Copyright (c) 2016 Fabien Siron <fabien.si...@epita.fr>
> +# All rights reserved.
> +#
> +# Redistribution and use in source and binary forms, with or without
> +# modification, are permitted provided that the following conditions
> +# are met:
> +# 1. Redistributions of source code must retain the above copyright
> +#    notice, this list of conditions and the following disclaimer.
> +# 2. Redistributions in binary form must reproduce the above copyright
> +#    notice, this list of conditions and the following disclaimer in the
> +#    documentation and/or other materials provided with the distribution.
> +# 3. The name of the author may not be used to endorse or promote products
> +#    derived from this software without specific prior written permission.
> +#
> +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
> +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
> +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
> +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
> +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
> +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
> +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
> +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
> +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
> +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
> +
> +. "${srcdir=.}/init.sh"
> +
> +# getfdproto is implemented using /proc/self/fd
> +[ -d /proc/self/fd/ ] ||
> +    framework_skip_ '/proc/self/fd/ is not available'
> +
> +run_strace_match_diff -e trace=network

Do these few lines of test driver code worth to be copyrighted?
I don't think so.  I've applied this commit with the copyright header.
I've also pushed another commit on top of this one,
extending tests/netlink_protocol.c, please have a look.


-- 
ldv

Attachment: pgpDniLie5A7o.pgp
Description: PGP signature

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to