From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: eric.jin@intel.com) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Mon, 16 Sep 2019 18:03:45 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2019 18:03:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,514,1559545200"; d="scan'208";a="187310413" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 16 Sep 2019 18:03:44 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Sep 2019 18:03:44 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 16 Sep 2019 18:03:44 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 16 Sep 2019 18:03:44 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.140]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.53]) with mapi id 14.03.0439.000; Tue, 17 Sep 2019 09:03:42 +0800 From: "Eric Jin" To: "devel@edk2.groups.io" , "xypron.glpk@gmx.de" CC: Supreeth Venkatesh , Stephano Cetola Subject: Re: [edk2-devel] [edk2-test] [PATCH 1/1] uefi-sct/SctPkg: UninstallMultipleProtocols, checkpoint 7-9 Thread-Topic: [edk2-devel] [edk2-test] [PATCH 1/1] uefi-sct/SctPkg: UninstallMultipleProtocols, checkpoint 7-9 Thread-Index: AQHVaaAfktoWGrVhrEap5v/WVnHu26ctmiXAgAF57/A= Date: Tue, 17 Sep 2019 01:03:42 +0000 Message-ID: References: <20190912192702.26999-1-xypron.glpk@gmx.de> <15C4CA552BD488C6.29413@groups.io> In-Reply-To: <15C4CA552BD488C6.29413@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: eric.jin@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Push at d296b56b6aca94dcbb3fc4dffb4ed36051539084 -----Original Message----- From: devel@edk2.groups.io On Behalf Of Eric Jin Sent: Monday, September 16, 2019 10:31 AM To: devel@edk2.groups.io; xypron.glpk@gmx.de Cc: Supreeth Venkatesh ; Stephano Cetola Subject: Re: [edk2-devel] [edk2-test] [PATCH 1/1] uefi-sct/SctPkg: Uninsta= llMultipleProtocols, checkpoint 7-9 Reviewed-by: Eric Jin -----Original Message----- From: devel@edk2.groups.io On Behalf Of Heinrich Sc= huchardt Sent: Friday, September 13, 2019 3:27 AM To: EDK II Development Cc: Jin, Eric ; Supreeth Venkatesh ; Stephano Cetola ; Heinrich Schu= chardt Subject: [edk2-devel] [edk2-test] [PATCH 1/1] uefi-sct/SctPkg: UninstallMu= ltipleProtocols, checkpoint 7-9 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1869 BS.UninstallMultipleProtocolInterfaces - InterfaceTestCheckpoint7 - 9 expe= ct UninstallMultipleProtocols() to return EFI_ACCESS_DENIED but the UEFI sp= ec has: "If any errors are generated while the protocol interfaces are being unins= talled, then the protocols uninstalled prior to the error will be reinstall= ed with the boot service EFI_BOOT_SERVICES.InstallProtocolInterface() and the status code EFI_INVAL= ID_PARAMETER is returned." So the SCT should check for EFI_INVALID_PARAMETER and not for EFI_ACCESS_D= ENIED. Correct the assertions. InterfaceCheckpoint6 has already been corrected with commit 30c4031acbdb ("uefi-sct/SctPkg: assertion for UninstallMultipleProtocols") Signed-off-by: Heinrich Schuchardt --- .../BlackBoxTest/ProtocolHandlerBBTestFunction_2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/ProtocolHandle= rServices/BlackBoxTest/ProtocolHandlerBBTestFunction_2.c b/uefi-sct/SctPkg/= TestCase/UEFI/EFI/BootServices/ProtocolHandlerServices/BlackBoxTest/Protoco= lHandlerBBTestFunction_2.c index fe6146b2..104e93b5 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/ProtocolHandlerServic= es/BlackBoxTest/ProtocolHandlerBBTestFunction_2.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/ProtocolHandlerServ +++ ices/BlackBoxTest/ProtocolHandlerBBTestFunction_2.c @@ -13108,7 +13108,7 @@ BBTestUninstallMultipleProtocolInterfacesInterface= TestCheckPoint7 ( // // Step 1: check return status //- if (EFI_ACCESS_DENIE= D =3D=3D Status) {+ if (EFI_INVALID_PARAMETER =3D=3D Status) { Ass= ertionType =3D EFI_TEST_ASSERTION_PASSED; } else { AssertionType = = =3D EFI_TEST_ASSERTION_FAILED;@@ -13453,7 +13453,7 @@ BBTestUninstallMulti= pleProtocolInterfacesInterfaceTestCheckPoint8 ( // // Step 1: check return status //- if (EFI_ACCESS_DENIE= D =3D=3D Status) {+ if (EFI_INVALID_PARAMETER =3D=3D Status) { Ass= ertionType =3D EFI_TEST_ASSERTION_PASSED; } else { AssertionType = = =3D EFI_TEST_ASSERTION_FAILED;@@ -13807,7 +13807,7 @@ BBTestUninstallMulti= pleProtocolInterfacesInterfaceTestCheckPoint9 ( // // Step 1: check return status //- if (EFI_ACCESS_DENIE= D =3D=3D Status) {+ if (EFI_INVALID_PARAMETER =3D=3D Status) { Ass= ertionType =3D EFI_TEST_ASSERTION_PASSED; } else { AssertionType = = =3D EFI_TEST_ASSERTION_FAILED;--=20 2.23.0 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47199): https://edk2.groups.io/g/devel/message/47199 Mute This Topic: https://groups.io/mt/34118784/1787343 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [eric.jin@intel.com] -= =3D-=3D-=3D-=3D-=3D-=3D