Commit 01d9d24e authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by G Edhaya Chandran
Browse files

uefi-sct/SctPkg: invalid values for SetWakeupTime()

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



According to the UEFI specification EFI_TIME.YEAR may take values in the
range 1900-9999. The specification does not forbid to set a wakeup time in
the past. We should not expect EFI_INVALID_PARAMETER to be returned by
SetWakeupTime() for the years 1997 and 2100.

Values 1899 and 10000 must lead to this error code.
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: G Edhaya Chandran<edhaya.chandran@arm.com>
parent 27aca88e
......@@ -817,7 +817,7 @@ BBTestSetWakeupTimeConsistencyTest (
);
} else {
Time = OldTime;
Time.Year = 1997;
Time.Year = 1899;
Status = gtRT->SetWakeupTime (
TRUE,
&Time
......@@ -844,7 +844,7 @@ BBTestSetWakeupTimeConsistencyTest (
StandardLib,
AssertionType,
gTimeServicesBBTestConformanceAssertionGuid026,
L"RT.SetWakeupTime - Time.Year is 1997",
L"RT.SetWakeupTime - Time.Year is 1899",
L"%a:%d:Status - %r",
__FILE__,
(UINTN)__LINE__,
......@@ -852,7 +852,7 @@ BBTestSetWakeupTimeConsistencyTest (
);
Time = OldTime;
Time.Year = 2100;
Time.Year = 10000;
Status = gtRT->SetWakeupTime (
TRUE,
&Time
......@@ -866,7 +866,7 @@ BBTestSetWakeupTimeConsistencyTest (
StandardLib,
AssertionType,
gTimeServicesBBTestConformanceAssertionGuid027,
L"RT.SetWakeupTime - Time.Year is 2100",
L"RT.SetWakeupTime - Time.Year is 10000",
L"%a:%d:Status - %r",
__FILE__,
(UINTN)__LINE__,
......
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