Skip to content
  • Sunny Wang's avatar
    uefi-sct/SctPkg: Allow SimpleTextOut SetMode to return EFI_UNSUPPORTED · d919c4a5
    Sunny Wang authored and G Edhaya Chandran's avatar G Edhaya Chandran committed
    REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3738
    
    
    
    The SimpleTestOut test cases don't allow SetMode to return
    EFI_UNSUPPORTED, which doesn't comply with UEFI spec.
    
    UEFI spec allows EFI_SIMPLE_TEXT_OUT_PROTOCOL.SetMode function to
    return EFI_UNSUPPORTED for the condition below:
    
    if the output devices support 80x50, that is defined to be mode 1.
    All other text dimensions supported by the device will follow as
    modes 2 and above. If an output device supports modes 2 and above,
    but does not support 80x50, then querying for mode 1 will return
    EFI_UNSUPPORTED.
    
    Therefore, update the test cases to fix this issue.
    
    Cc: G Edhaya Chandran <edhaya.chandran@arm.com>
    Cc: Barton Gao <gaojie@byosoft.com.cn>
    Cc: Carolyn Gjertsen <Carolyn.Gjertsen@amd.com>
    Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
    Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
    
    Signed-off-by: default avatarSunny Wang <sunny.wang@arm.com>
    Reviewed-by: default avatarG Edhaya Chandran <edhaya.chandran@arm.com>
    d919c4a5