From patchwork Tue Feb 16 17:44:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 62070 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1807620lbl; Tue, 16 Feb 2016 09:47:42 -0800 (PST) X-Received: by 10.140.247.68 with SMTP id s65mr30157943qhc.72.1455644862312; Tue, 16 Feb 2016 09:47:42 -0800 (PST) Return-Path: Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com. [209.132.183.25]) by mx.google.com with ESMTPS id 18si41551647qho.50.2016.02.16.09.47.41 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 16 Feb 2016 09:47:42 -0800 (PST) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.25 as permitted sender) client-ip=209.132.183.25; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.25 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u1GHj5UA014901; Tue, 16 Feb 2016 12:45:05 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u1GHiZA9015498 for ; Tue, 16 Feb 2016 12:44:35 -0500 Received: from colepc.redhat.com (ovpn-113-23.phx2.redhat.com [10.3.113.23]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1GHiX42011999; Tue, 16 Feb 2016 12:44:34 -0500 From: Cole Robinson To: libvirt-list@redhat.com Date: Tue, 16 Feb 2016 12:44:28 -0500 Message-Id: <30122cc3abda81a6d158fd062b243cd58c534a1f.1455644471.git.crobinso@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/5] tests: qemuargv2xml: Remove unneeded XML blanking X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com None of the test cases depend on dropping these XML bits --- tests/qemuargv2xmltest.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) -- 2.5.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c index 6671be4..f07818a 100644 --- a/tests/qemuargv2xmltest.c +++ b/tests/qemuargv2xmltest.c @@ -23,14 +23,11 @@ static virQEMUDriver driver; static int blankProblemElements(char *data) { - if (virtTestClearLineRegex("[[:alnum:]]+", data) < 0 || - virtTestClearLineRegex("([[:alnum:]]|-)+", data) < 0 || + if (virtTestClearLineRegex("([[:alnum:]]|-)+", data) < 0 || virtTestClearLineRegex("[[:digit:]]+", data) < 0 || virtTestClearLineRegex("", data) < 0 || virtTestClearLineRegex("[[:digit:]]+", - data) < 0 || - virtTestClearLineRegex("", data) < 0 || - virtTestClearLineRegex("", data) < 0) + data) < 0) return -1; return 0; }