<p>Hi Robert,  <br /><br />     In the present patch the verification of elapsed time is failing.<br />     The patch will need additional changes as below (bolded):<br /><br /></p>
<span style="font-size: 14px;">diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestFunction.c</span><br /><span style="font-size: 14px;">index ad72646b..f3d189bd 100644</span><br /><span style="font-size: 14px;">--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestFunction.c</span><br /><span style="font-size: 14px;">+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestFunction.c</span><br /><span style="font-size: 14px;">@@ -827,7 +827,7 @@ BBTestStallInterfaceTest (</span><br /><span style="font-size: 14px;">       StartTime = Epoch;</span><br /><span style="font-size: 14px;">     OldTpl = gtBS->RaiseTPL (TplArray[Index]);</span><br /><span style="font-size: 14px;">     Status = gtBS->Stall (</span><br /><span style="font-size: 14px;">-                     10000000</span><br /><span style="font-size: 14px;">+                     4000000^M</span><br /><span style="font-size: 14px;">                      );</span><br /><span style="font-size: 14px;">     gtBS->RestoreTPL (OldTpl);</span><br /><span style="font-size: 14px;">     if (gtRT->GetTime (&EndTime, NULL) != EFI_SUCCESS)</span><br /><span style="font-size: 14px;">@@ -845,7 +845,7 @@ BBTestStallInterfaceTest (</span><br /><span style="font-size: 14px;">                    (Index == 1? \</span><br /><span style="font-size: 14px;">                     gMiscBootServicesBBTestFunctionAssertionGuid021: \</span><br /><span style="font-size: 14px;">                     gMiscBootServicesBBTestFunctionAssertionGuid022),</span><br /><span style="font-size: 14px;">-                   L"BS.Stall - 10 seconds",</span><br /><strong><span style="font-size: 14px;">+                   L"BS.Stall - 4 seconds",^M</span></strong><br /><span style="font-size: 14px;">                    L"%a:%d:Status - %r, TPL - %d",</span><br /><span style="font-size: 14px;">                    __FILE__,</span><br /><span style="font-size: 14px;">                    (UINTN)__LINE__,</span><br /><span style="font-size: 14px;">@@ -853,8 +853,8 @@ BBTestStallInterfaceTest (</span><br /><span style="font-size: 14px;">                    TplArray[Index]</span><br /><span style="font-size: 14px;">                    );</span><br /><span style="font-size: 14px;">     SecondsElapsed = GetSecondsElapsed (&StartTime, &EndTime);</span><br /><span style="font-size: 14px;">-    if ((SecondsElapsed <= 10 + MAX_SECOND_MARGIN) &&</span><br /><span style="font-size: 14px;">-         (SecondsElapsed >= 10 - MAX_SECOND_MARGIN)) {</span><br /><strong><span style="font-size: 14px;">+    if ((SecondsElapsed <= 4 + MAX_SECOND_MARGIN) &&^M</span></strong><br /><strong><span style="font-size: 14px;">+         (SecondsElapsed >= 4 - MAX_SECOND_MARGIN)) {^M</span></strong><br /><span style="font-size: 14px;">       AssertionType = EFI_TEST_ASSERTION_PASSED;</span><br /><span style="font-size: 14px;">     } else {</span><br /><span style="font-size: 14px;">       AssertionType = EFI_TEST_ASSERTION_FAILED;</span><br /><span style="font-size: 14px;">diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestMain.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestMain.h</span><br /><span style="font-size: 14px;">index 9e98ec01..4f8eaa4c 100644</span><br /><span style="font-size: 14px;">--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestMain.h</span><br /><span style="font-size: 14px;">+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServicesBBTestMain.h</span><br /><span style="font-size: 14px;">@@ -46,7 +46,7 @@ typedef struct _RESET_DATA {</span><br /><span style="font-size: 14px;">  { 0xA6033499, 0xE4AF, 0x44f5, {0x9D, 0x16, 0x30, 0x78, 0xD8, 0x61, 0x32, 0x28 }}</span><br /><span style="font-size: 14px;"> </span><br /><span style="font-size: 14px;"> #define TPL_ARRAY_SIZE 3</span><br /><span style="font-size: 14px;">-#define MAX_SECOND_MARGIN 2</span><br /><span style="font-size: 14px;">+#define MAX_SECOND_MARGIN 1^M</span><br /><span style="font-size: 14px;"> </span><br /><span style="font-size: 14px;"> //</span><br /><span style="font-size: 14px;"> // Change size from TPL_ARRAY_SIZE to TPL_ARRAY_SIZE + 1</span>
<div><br /><br /></div>
<p><br />I have verified the new changes and it executes fine.<br />Also uploaded the changes to bugzilla <a href="https://bugzilla.tianocore.org/show_bug.cgi?id=4105">4105 – SctPkg: Stall_Func test can cause disk timeouts and testing failure (tianocore.org)</a><br />You could please also check and reply.<br /><br />With Warm Regards,</p>
<p>Edhay<br /><br /></p>
<div><br /><br /></div>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/96129">View/Reply Online (#96129)</a> |    |  <a target="_blank" href="https://groups.io/mt/94007106/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>