From nobody Sun Feb 8 19:35:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1549963303071832.7995314525141; Tue, 12 Feb 2019 01:21:43 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 61E7C36807; Tue, 12 Feb 2019 09:21:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1AA0710021B1; Tue, 12 Feb 2019 09:21:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1885C1819AF9; Tue, 12 Feb 2019 09:21:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x1C9LYHr023906 for ; Tue, 12 Feb 2019 04:21:34 -0500 Received: by smtp.corp.redhat.com (Postfix) id C6C0C5C229; Tue, 12 Feb 2019 09:21:34 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4DBBC5C21A for ; Tue, 12 Feb 2019 09:21:34 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Tue, 12 Feb 2019 10:21:19 +0100 Message-Id: <865b201479d5094d3bc7c342317f095ec763490f.1549963201.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/9] vshtabletest: indent strings with expected output 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: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 12 Feb 2019 09:21:41 +0000 (UTC) Indent them by four spaces from the previous line, instead of starting at columnn zero. Signed-off-by: J=C3=A1n Tomko --- tests/vshtabletest.c | 76 ++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/tests/vshtabletest.c b/tests/vshtabletest.c index e795c5afc0..79285b14a9 100644 --- a/tests/vshtabletest.c +++ b/tests/vshtabletest.c @@ -43,13 +43,13 @@ testVshTableHeader(const void *opaque ATTRIBUTE_UNUSED) int ret =3D 0; char *act =3D NULL; const char *exp =3D -" 1 fedora28 running\n" -" 2 rhel7.5 running\n"; + " 1 fedora28 running\n" + " 2 rhel7.5 running\n"; const char *exp2 =3D -" Id Name State\n" -"--------------------------\n" -" 1 fedora28 running\n" -" 2 rhel7.5 running\n"; + " Id Name State\n" + "--------------------------\n" + " 1 fedora28 running\n" + " 2 rhel7.5 running\n"; =20 vshTablePtr table =3D vshTableNew("Id", "Name", "State", NULL); //to ask about return @@ -118,10 +118,10 @@ testUnicode(const void *opaque ATTRIBUTE_UNUSED) char *act =3D NULL; =20 const char *exp =3D -" Id =E5=90=8D=E7=A8=B1 =D0=B3=D0=BE=D1=81=D1=83=D0=B4= =D0=B0=D1=80=D1=81=D1=82=D0=B2=D0=BE\n" -"-----------------------------------------\n" -" 1 fedora28 running\n" -" 2 =E3=81=A4=E3=81=B8=E3=82=BDrhel7.5=E3=81=A4=E3=81=B8=E3=82=BD run= ning\n"; + " Id =E5=90=8D=E7=A8=B1 =D0=B3=D0=BE=D1=81=D1= =83=D0=B4=D0=B0=D1=80=D1=81=D1=82=D0=B2=D0=BE\n" + "-----------------------------------------\n" + " 1 fedora28 running\n" + " 2 =E3=81=A4=E3=81=B8=E3=82=BDrhel7.5=E3=81=A4=E3=81=B8=E3=82= =BD running\n"; vshTablePtr table; =20 table =3D vshTableNew("Id", "=E5=90=8D=E7=A8=B1", "=D0=B3=D0=BE=D1=81= =D1=83=D0=B4=D0=B0=D1=80=D1=81=D1=82=D0=B2=D0=BE", NULL); @@ -150,10 +150,10 @@ testUnicodeArabic(const void *opaque ATTRIBUTE_UNUSED) char *act =3D NULL; =20 const char *exp =3D -" =EF=BB=A1=EF=BA=8D =EF=BB=A2=EF=BB=A3=EF=BA=8D =EF=BB=95=EF=BA=8E=EF=BA= =8C=EF=BB=A3=EF=BA=93 =EF=BA=93 =EF=BA=8E=EF=BB=A0=EF=BA=BC=EF=BB=8B = =EF=BA=8D=EF=BB=B8=EF=BA=9C=EF= =BB=A7=EF=BA=8E=EF=BB=A7\n" -"-------------------------------------------------------------------------= ------------------\n" -" 1 =EF=BB=89=EF=BA=AA=EF=BB=B4=EF=BB=9F =EF=BA=8E=EF=BB=A0= =EF=BA=9C=EF=BB=98=EF=BB=B4=EF=BB=9F =EF=BB=95=EF=BA=8E=EF=BB=A3 =EF=BB=8A= =EF=BB=A7, =D9=A3=D9=A0 =EF=BB=8E=EF=BB=B4=EF=BB=A8=EF=BB=B3=EF=BA=8D =EF= =BB=AE=EF=BA=98=EF=BB=A7=EF=BA=8E=EF=BB=A4=EF=BA=97 =EF=BA=8E=EF=BB=A0=EF= =BA=9B=EF=BA=8E=EF=BB=A0=EF=BA=9B=D8=8C =EF=BA=84=EF=BA=B3=EF=BA=AD, =EF=BA= =A9=EF=BB=AE=EF=BB=9F =EF=BA=A9=EF=BB=AE=EF=BB=9F. =EF=BA=84=EF=BB=A3=EF= =BA=8E=EF=BB=A3 =EF=BA=8D =EF=BA=8E=EF=BB=A7 =EF=BB=B2=EF=BB=9C=EF=BB=A7\n" -" =EF=BA=BA=EF=BB=94=EF=BA=A3=EF=BA=93 =EF=BA=96=EF=BB=9C=EF=BA= =98=EF=BB=B4=EF=BB=9B=EF=BA=8D=D9=8B =EF=BB=8A=EF=BB=9F, =EF=BA=8E=EF=BB=A0= =EF=BA=A0=EF=BB=A7=EF=BB=AD=EF=BA=A9 =EF=BB=AD=EF=BA=8E=EF=BB=A0=EF=BB=8C= =EF=BA=97=EF=BA=8D=EF=BA=A9 =EF=BA=B5=EF=BA=AD= \n"; + " =EF=BB=A1=EF=BA=8D =EF=BB=A2=EF=BB=A3=EF=BA=8D =EF=BB=95=EF=BA= =8E=EF=BA=8C=EF=BB=A3=EF=BA=93 =EF=BA=93 =EF=BA=8E=EF=BB=A0=EF=BA=BC=EF= =BB=8B =EF=BA=8D=EF=BB=B8= =EF=BA=9C=EF=BB=A7=EF=BA=8E=EF=BB=A7\n" + "-----------------------------------------------------------------= --------------------------\n" + " 1 =EF=BB=89=EF=BA=AA=EF=BB=B4=EF=BB=9F =EF=BA=8E=EF= =BB=A0=EF=BA=9C=EF=BB=98=EF=BB=B4=EF=BB=9F =EF=BB=95=EF=BA=8E=EF=BB=A3 =EF= =BB=8A=EF=BB=A7, =D9=A3=D9=A0 =EF=BB=8E=EF=BB=B4=EF=BB=A8=EF=BB=B3=EF=BA=8D= =EF=BB=AE=EF=BA=98=EF=BB=A7=EF=BA=8E=EF=BB=A4=EF=BA=97 =EF=BA=8E=EF=BB=A0= =EF=BA=9B=EF=BA=8E=EF=BB=A0=EF=BA=9B=D8=8C =EF=BA=84=EF=BA=B3=EF=BA=AD, =EF= =BA=A9=EF=BB=AE=EF=BB=9F =EF=BA=A9=EF=BB=AE=EF=BB=9F. =EF=BA=84=EF=BB=A3= =EF=BA=8E=EF=BB=A3 =EF=BA=8D =EF=BA=8E=EF=BB=A7 =EF=BB=B2=EF=BB=9C=EF=BB=A7= \n" + " =EF=BA=BA=EF=BB=94=EF=BA=A3=EF=BA=93 =EF=BA=96=EF=BB= =9C=EF=BA=98=EF=BB=B4=EF=BB=9B=EF=BA=8D=D9=8B =EF=BB=8A=EF=BB=9F, =EF=BA=8E= =EF=BB=A0=EF=BA=A0=EF=BB=A7=EF=BB=AD=EF=BA=A9 =EF=BB=AD=EF=BA=8E=EF=BB=A0= =EF=BB=8C=EF=BA=97=EF=BA=8D=EF=BA=A9 =EF=BA=B5= =EF=BA=AD\n"; vshTablePtr table; wchar_t wc; =20 @@ -192,10 +192,10 @@ testUnicodeZeroWidthChar(const void *opaque ATTRIBUTE= _UNUSED) int ret =3D 0; vshTablePtr table =3D NULL; const char *exp =3D -" I\u200Bd Name \u200BStatus\n" -"--------------------------\n" -" 1\u200B fedora28 run\u200Bning\n" -" 2 rhel7.5 running\n"; + " I\u200Bd Name \u200BStatus\n" + "--------------------------\n" + " 1\u200B fedora28 run\u200Bning\n" + " 2 rhel7.5 running\n"; char *act =3D NULL; wchar_t wc; =20 @@ -229,10 +229,10 @@ testUnicodeCombiningChar(const void *opaque ATTRIBUTE= _UNUSED) int ret =3D 0; vshTablePtr table =3D NULL; const char *exp =3D -" Id N=C3=A1me =E2=93=88tatus\n" -"--------------------------\n" -" 1 f=C4=9Bdora28 running\n" -" 2 rhel running\n"; + " Id N=C3=A1me =E2=93=88tatus\n" + "--------------------------\n" + " 1 f=C4=9Bdora28 running\n" + " 2 rhel running\n"; char *act =3D NULL; =20 table =3D vshTableNew("Id", "N=C3=A1me", "=E2=93=88tatus", NULL); @@ -258,10 +258,10 @@ testUnicodeNonPrintableChar(const void *opaque ATTRIB= UTE_UNUSED) int ret =3D 0; vshTablePtr table =3D NULL; const char *exp =3D -" I\\x09d Name Status\n" -"----------------------------------\n" -" 1 f\\x07edora28 running\n" -" 2 rhel7.5 running\n"; + " I\\x09d Name Status\n" + "----------------------------------\n" + " 1 f\\x07edora28 running\n" + " 2 rhel7.5 running\n"; char *act =3D NULL; =20 table =3D vshTableNew("I\td", "Name", "Status", NULL); @@ -288,20 +288,20 @@ testNTables(const void *opaque ATTRIBUTE_UNUSED) vshTablePtr table2 =3D NULL; vshTablePtr table3 =3D NULL; const char *exp1 =3D -" Id Name Status\n" -"--------------------------\n" -" 1 fedora28 running\n" -" 2 rhel7.5 running\n"; + " Id Name Status\n" + "--------------------------\n" + " 1 fedora28 running\n" + " 2 rhel7.5 running\n"; const char *exp2 =3D -" Id Name Status\n" -"---------------------\n"; + " Id Name Status\n" + "---------------------\n"; const char *exp3 =3D -" Id\n" -"-----\n" -" 1\n" -" 2\n" -" 3\n" -" 4\n"; + " Id\n" + "-----\n" + " 1\n" + " 2\n" + " 3\n" + " 4\n"; char *act1 =3D NULL; char *act2 =3D NULL; char *act3 =3D NULL; --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list