From nobody Fri Nov 29 16:44:29 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1634300095; cv=none; d=zohomail.com; s=zohoarc; b=FZRHISeYGB+XAiK6P/AExpnmVq/lHMRidYpqbsWwTLvFs8lTf1Z9bfVEPI823adYaQDseAZAFWnUd2s7OzF/Au48Us2enM+AZwv9KwZaD6qJNISe/By8Nmba/sNmW31mISnNVjJvRUaiB0QYgYl/8jsNc5QOf+tAqymLyzOvp3Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634300095; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=VFJ3C49xF82rN9GwNAPl+mKVQ6RhY61ovG/ik/mBMu0=; b=ToYUBj2HbSIWK+9h1Qxpga9X/QLAgL2ndLwhuVW4QGdSfBrtDvZgRa20nCZz0oj5D/mu9+ObV2l9eAE+/Jzsaco+xXzpf0QAOS09iotnkmDPsZG7dn9wzMnVoFb/oMLwolDxHfD7p0SWIAAWAEO98BDefZcCFkP7h+GtOlq+Bok= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1634300095490125.01414244967191; Fri, 15 Oct 2021 05:14:55 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.210434.367308 (Exim 4.92) (envelope-from ) id 1mbM6b-0003XK-QE; Fri, 15 Oct 2021 12:14:33 +0000 Received: by outflank-mailman (output) from mailman id 210434.367308; Fri, 15 Oct 2021 12:14:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mbM6b-0003XD-N2; Fri, 15 Oct 2021 12:14:33 +0000 Received: by outflank-mailman (input) for mailman id 210434; Fri, 15 Oct 2021 12:14:31 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mbM6Z-0003Vn-TU for xen-devel@lists.xenproject.org; Fri, 15 Oct 2021 12:14:31 +0000 Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 72fbfd62-2db1-11ec-8231-12813bfff9fa; Fri, 15 Oct 2021 12:14:30 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 72fbfd62-2db1-11ec-8231-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1634300070; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YYWuWAVeA6+IHR6oFqCP4UO+MQc3A44zw+1QAAoBvB0=; b=gAO/vMquM1Y8agx8v+FCklcr1sokZ12pFUCsJVhJlfe0x0tcnXdgjNBj 13XCDIuNergMocbSp0tKlyeJoGcggt+YQhbHogL6vVDp8xNoTx76NUhhj yjFIcm4hF5GuiSnrlJKGzDdUzP2mjF6il1xTCLd06Eg9d4RJLghleVpt2 4=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: 6DVR2/cz0CG6qbFLu3FmvdYkc15Eo/CKY93zqgCwgYJSPOQbtG1MalTK4Aa7MzX6U8NuEuRpk/ XuM239J+Wl4xBZ3IKW7vLxD2EaXlNAvLN3IG2NmgcEX8TW5o+1RBnsusQ6JPdkgdeE16LUzZxc OwbDelZgJEYH+00/qKAYFUo0uDkdl/8AelYiuFLeHjTUJkupT+2jtZtO+nvPkNd+x2p0Vgq0a1 c/IldJC23de/RXFVTwgoTrslIZ3LMO8PMbfsQ7+MsELCRQ6GV93blPNhE2Lcp0Re/4bxWbpZyV oj3o5HHUnXHrb7nhaLeJPB50 X-SBRS: 5.1 X-MesageID: 54844375 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:clFLQalkXiHsf+aZtimkWhfo5gxqIURdPkR7XQ2eYbSJt1+Wr1Gzt xJLCDzXP/6IZWOkedx0a4mw8R8HupXdydFjTwU4pS9kHiMWpZLJC+rCIxarNUt+DCFioGGLT Sk6QoOdRCzhZiaE/n9BClVlxJVF/fngqoDUUYYoAQgsA185IMsdoUg7wbdg2tc12YHR7z6l4 rseneWOYDdJ5BYsWo4kw/rrRMRH5amaVJsw5zTSVNgT1LPsvyB94KE3fMldG0DQUIhMdtNWc s6YpF2PEsE1yD92Yj+tuu6TnkTn2dc+NyDW4pZdc/DKbhSvOkXee0v0XRYRQR4/ttmHozx+4 NZyvKaPRQ4OArfRwLRFSBZaPiRfFKITrdcrIVDn2SCS50jPcn+qyPRyFkAme4Yf/46bA0kXq 6ZecmpUKEne2aTmm9pXScE17ignBOrmIoIZ/Ep8wD/QC/E4aZvCX7/L9ZlT2zJYasVmQKqOO 5ZCNmcHgBLoeiNhJkYtIb0HhsSaoFPQS2R3lXGyuv9ii4TU5FMoi+W8WDbPQ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DZtDHEb2ejUgw0hPL3aw= IronPort-HdrOrdr: A9a23:Nz4HRq8mCyOhktjIHiNuk+ESdb1zdoMgy1knxilNoERuA6qlfr OV7Y0mPHjP+XAssRAb6Je90ca7MBfhHPJOgLX5Xo3SBTUO2lHYS72KhLGKq1eMd0KRygc079 Y5T0EUMqySMbEOt7ee3ODOKadD/DDoysCVbbi09RxQpEpRGtldBk9Ce32m++dNNVN77NwCZc GhDjYsnUvoRZzpBP7LcEXsoYL41qr2fdvdEGQ772VO0njHsdt0gISKVyRxDn8lInZy6KZn/m 7fnwPj4KK/9/m91x/HzmfWq49bgd3717J4dbixY2cuW0vRYyuTFfZcsoe5zUUISK3F0idbrP Dc5xM7e8hj4XLYeW+45RH33RP7zToo43j+jVeFnHrqu6XCNXkHItsEgZgcfgrS6kImst052r lMxXiFu51eCg6FlDjh5sLPSwphmiOP0DAfead6tQ0RbWNpAIUh47D20ihuYdY99GOT0vFrLA EYZPusqMq/UTihHjDkVhoG+q3uYp0XJGb2fqEvgL3o79FmpgEL86JD/r1jop4pzuNDd3GSj9 60cJhVqA== X-IronPort-AV: E=Sophos;i="5.85,375,1624334400"; d="scan'208";a="54844375" From: Kevin Stefanov To: Xen-devel CC: Kevin Stefanov , Ian Jackson , Wei Liu , Juergen Gross , Julien Grall , Andrew Cooper Subject: [PATCH v2] tools/tests: Make E2BIG non-fatal to xenstore unit test Date: Fri, 15 Oct 2021 13:14:09 +0100 Message-ID: <20211015121409.24434-1-kevin.stefanov@citrix.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1634300097041100001 Content-Type: text/plain; charset="utf-8" Xenstore's unit test fails on read and write of big numbers if quota-maxsize is set to a lower number than those test cases use. Output a special warning instead of a failure message in such cases and make the error non-fatal to the unit test. Signed-off-by: Kevin Stefanov --- CC: Ian Jackson CC: Wei Liu CC: Juergen Gross CC: Julien Grall CC: Andrew Cooper v2: Adhere to coding style, use E2BIG instead of 7, set ret to 0 --- tools/tests/xenstore/test-xenstore.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/tests/xenstore/test-xenstore.c b/tools/tests/xenstore/te= st-xenstore.c index d3574b3fa2..f8423e568e 100644 --- a/tools/tests/xenstore/test-xenstore.c +++ b/tools/tests/xenstore/test-xenstore.c @@ -110,8 +110,17 @@ static int call_test(struct test *tst, int iters, bool= no_clock) break; } =20 + /* Make E2BIG non-fatal to the test */ if ( ret ) - printf("%-10s: failed (ret =3D %d, stage %s)\n", tst->name, ret, s= tage); + { + if ( ret =3D=3D E2BIG ) + { + printf("%-10s: Not run - argument list too long\n", tst->name); + ret =3D 0; + } + else =20 + printf("%-10s: failed (ret =3D %d, stage %s)\n", tst->name, re= t, stage); + } else if ( !no_clock ) { printf("%-10s:", tst->name); --=20 2.25.1