From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by mx.groups.io with SMTP id smtpd.web11.16413.1631128523188993239 for ; Wed, 08 Sep 2021 12:15:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=TkIRbguX; spf=pass (domain: gmx.de, ip: 212.227.15.15, mailfrom: xypron.glpk@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631128511; bh=k6zSpXxhLiHb4nEvA6kr1ClX/KgtjHWZY5/BvyjtmCU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=TkIRbguXMRd9h7jUlzEocf+27xfztOx5XPnIjfZieupx+qLa6aH9cheviyJSOqOun ow4hccjw2W4RxE+FYhSr0oh8KtkXPw/dile9+emBon52/1BA9yojrPEjs+T1h+umMm 0qJN0WdYeaWy7SthabQ4JJQZZdBfZyRDYw0jxHmU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([88.152.144.157]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MybKp-1n9Hta1Jlt-00yzOX; Wed, 08 Sep 2021 21:15:11 +0200 From: "Heinrich Schuchardt" To: EDK II Development Cc: Eric Jin , G Edhaya Chandran , Barton Gao , Arvin Chen , Samer El-Haj-Mahmoud , Heinrich Schuchardt Subject: [PATCH edk2-test 1/1] uefi-sct/SctPkg: unsupported TEXT_INPUT_EX.SetState Date: Wed, 8 Sep 2021 21:14:14 +0200 Message-Id: <20210908191414.4636-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:Fgi7Ss0tML/Iow/OUVHjQ1w2SuFqJW+Ny9//nGiMW7nysuSyY0c XB15o2Z9drgmF4HLtztBK552JFHSxlxRZs1CsXb98Tzih1FPb/PDCJHbO0VK2pbN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emRH0EdbV5x46Q8stCrob960eUsFaX36oOV 2aD6lc44+IMxk83UD7M62zZf7dKz8/OtvSoLRwJmMtoKHisxshr8hkgKiqRIUc4KW32EAj+K4 CaFC8vnqSOVXIEj5R1yzG8KKoIoV9HH5fu1e8Exew452u6akV4mfZ4RqzUnJJt86QgDuy0SSa zN/b/R3HfNR3I4= Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3390 According to the UEFI specification EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.SetState() may return EFI_UNSUPPORTED if "the device does not support the ability to have its state set." BBTestReadKeyStrokeExFunctionAutoTestCheckpoint1() must not report an erro= r in this case. Fixes: e9c21711c17 ("uefi-sct/SctPkg:Add checkpoint of ReadKeyStrokeEx Tog= gle state") Signed-off-by: Heinrich Schuchardt =2D-- .../BlackBoxTest/SimpleTextInputExBBTestFunction.c | 3 +++ .../BlackBoxTest/SimpleTextInputExBBTestFunction.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleTextInputEx/= BlackBoxTest/SimpleTextInputExBBTestFunction.c b/uefi-sct/SctPkg/TestCase/= UEFI/EFI/Protocol/SimpleTextInputEx/BlackBoxTest/SimpleTextInputExBBTestFu= nction.c index 3ae40ee3b3ed..c9eaf408ab02 100644 =2D-- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleTextInputEx/Black= BoxTest/SimpleTextInputExBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleTextInputEx/BlackBo= xTest/SimpleTextInputExBBTestFunction.c @@ -1182,6 +1182,9 @@ BBTestReadKeyStrokeExFunctionAutoTestCheckpoint1 ( SimpleTextInputEx, &State ); + if (Status =3D=3D EFI_UNSUPPORTED) { + return EFI_UNSUPPORTED; + } if (EFI_ERROR(Status)) { StandardLib->RecordAssertion ( diff --git a/uefi-sct/SctPkg/TestCase/UEFI/IHV/Protocol/SimpleTextInputEx/= BlackBoxTest/SimpleTextInputExBBTestFunction.c b/uefi-sct/SctPkg/TestCase/= UEFI/IHV/Protocol/SimpleTextInputEx/BlackBoxTest/SimpleTextInputExBBTestFu= nction.c index 7dfd5dea6269..eddce4d3640d 100644 =2D-- a/uefi-sct/SctPkg/TestCase/UEFI/IHV/Protocol/SimpleTextInputEx/Black= BoxTest/SimpleTextInputExBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/IHV/Protocol/SimpleTextInputEx/BlackBo= xTest/SimpleTextInputExBBTestFunction.c @@ -1182,6 +1182,9 @@ BBTestReadKeyStrokeExFunctionAutoTestCheckpoint1 ( SimpleTextInputEx, &State ); + if (Status =3D=3D EFI_UNSUPPORTED) { + return EFI_UNSUPPORTED; + } if (EFI_ERROR(Status)) { StandardLib->RecordAssertion ( =2D- 2.30.2