From patchwork Tue Oct 11 22:38:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Syromyatnikov X-Patchwork-Id: 9372181 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 663E1607FD for ; Wed, 12 Oct 2016 07:48:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A42429CDF for ; Wed, 12 Oct 2016 07:48:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F3AE29CEC; Wed, 12 Oct 2016 07:48:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 81C8829CEF for ; Wed, 12 Oct 2016 07:48:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9C7k4iL028634; Wed, 12 Oct 2016 03:46:05 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u9BMcP1S009481 for ; Tue, 11 Oct 2016 18:38:25 -0400 Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9BMcP0Q032301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Oct 2016 18:38:25 -0400 Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0E2008124B; Tue, 11 Oct 2016 22:38:24 +0000 (UTC) Received: by mail-lf0-f65.google.com with SMTP id b75so5434110lfg.3; Tue, 11 Oct 2016 15:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=32ISIPDPtvYnosNMC3dlHqTTzVCQJrIiO9I3E5pNELo=; b=mxNLr7d1PJyaxOI69EU9458W2OeA5yJDmFIuNHNyFcOPl9BjIcmzTWsq/HlG88Zv6+ sD4siXSXl+q6yXaTAoM7+VF/PW/y+SBZlAyF45D7Xlfq4SuuWNDn2EJNInhrLKqC1Yn7 SUgUt9Lrf/W0ZVbGIDRMWLnwxCO7Ik4yX4EO3lWt97wS7bUj9A2SUIjJR8VZzVSz8ZKy 5CM9t/TSnnwMvgzVVTYTUUMH2F6Tgc+QoOJ5X7bDBvz/KKmREPOUX6U/TKdBx+BdaRam pNYS7VhdccrhZ4acoj/rFuG/d7EenN/ycs0jrGRa5aoYoxT9UMkML6LXUEIbAFqdnTVS g+1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=32ISIPDPtvYnosNMC3dlHqTTzVCQJrIiO9I3E5pNELo=; b=afgQW9rnf/H5dYetKnW8ryWOI8ADj3qt/yO2+sDc+8LCbj4UbYKFh+ETREXZhgTjAc 9k0MEZltSi76XSfOKKCiKDDBx/Ghd3X22uoxPMciQDYAQgi+XS1GgLo7edR+CEtE0vrR rgW9aDh5aPyTsXiV+K6f9XaaccV+TVDxR4lnRQuMKLj7X+oiF/OrBkmEcAen7d1wiO9N V0KRRZX6b0aewtCuxxdOWUIVWe7olqm/N8ZnBLnN5cNW5HUxp0c1Ocg0JaD0k4MtNF+4 EqvPUn8+1eptwKtwvEKXHbdYe4M6VMw7pymhvtIcdhCxlbCfDF9Iz/nfPEbbTwoKhyBy mhfg== X-Gm-Message-State: AA6/9RkGYXJYZSsjh7TKYHN9dUvEJ/CTvI7aIhv2ItZWxlYKBwvbj6LOUraWnLqMqm77pQ== X-Received: by 10.25.21.12 with SMTP id l12mr4325909lfi.152.1476225502407; Tue, 11 Oct 2016 15:38:22 -0700 (PDT) Received: from obsidian (broadband-46-188-15-144.2com.net. [46.188.15.144]) by smtp.gmail.com with ESMTPSA id x23sm1530156lfa.4.2016.10.11.15.38.21 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 11 Oct 2016 15:38:21 -0700 (PDT) Date: Wed, 12 Oct 2016 01:38:19 +0300 From: Eugene Syromyatnikov To: strace-devel@lists.sourceforge.net Message-ID: <20161011223819.GA8545@obsidian> References: <20161005.192828.566127461630656590.yamato@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20161005.192828.566127461630656590.yamato@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 11 Oct 2016 22:38:24 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 11 Oct 2016 22:38:24 +0000 (UTC) for IP:'209.85.215.65' DOMAIN:'mail-lf0-f65.google.com' HELO:'mail-lf0-f65.google.com' FROM:'evgsyr@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.17 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.215.65 mail-lf0-f65.google.com 209.85.215.65 mail-lf0-f65.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.25 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 12 Oct 2016 03:45:31 -0400 Cc: dm-devel@redhat.com, mpatocka@redhat.com, yamato@redhat.com Subject: [dm-devel] [PATCH 2/9] tests: Add check for printing of overlength strings to ioctl_dm test X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP --- tests/ioctl_dm.c | 2 +- tests/ioctl_dm.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 6ad4ea9..0a3bbf4 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -77,7 +77,7 @@ main(void) printf("ioctl(-1, DM_DEV_SET_GEOMETRY, " "{version=4.1.2, data_size=%u, data_start=%u, " "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, " - "string=\"10 20 30 40\"}) = -1 EBADF (%m)\n", + "string=\"10 20 30 \"...}) = -1 EBADF (%m)\n", s.ioc.data_size, s.ioc.data_start); init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); diff --git a/tests/ioctl_dm.test b/tests/ioctl_dm.test index db77616..78866d3 100755 --- a/tests/ioctl_dm.test +++ b/tests/ioctl_dm.test @@ -5,7 +5,7 @@ . "${srcdir=.}/init.sh" run_prog > /dev/null -run_strace -a16 -veioctl $args > "$EXP" +run_strace -a16 -s9 -veioctl $args > "$EXP" check_prog grep grep -v '^ioctl([012],' < "$LOG" > "$OUT" match_diff "$OUT" "$EXP"