Commit 7c60a6d4 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by G Edhaya Chandran
Browse files

uefi-sct/SctPkg: unsupported TEXT_INPUT_EX.SetState

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3390

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 error
in this case.

Fixes: e9c21711

 ("uefi-sct/SctPkg:Add checkpoint of ReadKeyStrokeEx Toggle state")
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>

Reviewed-by: G Edhaya Chandran<edhaya.chandran@arm.com>
parent 92a0343c
......@@ -1182,6 +1182,9 @@ BBTestReadKeyStrokeExFunctionAutoTestCheckpoint1 (
SimpleTextInputEx,
&State
);
if (Status == EFI_UNSUPPORTED) {
return EFI_UNSUPPORTED;
}
if (EFI_ERROR(Status)) {
StandardLib->RecordAssertion (
......
......@@ -1182,6 +1182,9 @@ BBTestReadKeyStrokeExFunctionAutoTestCheckpoint1 (
SimpleTextInputEx,
&State
);
if (Status == EFI_UNSUPPORTED) {
return EFI_UNSUPPORTED;
}
if (EFI_ERROR(Status)) {
StandardLib->RecordAssertion (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment