Approved, appreciate your quick response.

Thanks,
Yi 

-----Original Message-----
From: Gerd Hoffmann <[email protected]> 
Sent: Friday, June 14, 2024 6:41 PM
To: [email protected]; Li, Yi1 <[email protected]>
Cc: Hou, Wenxing <[email protected]>; Yao, Jiewen <[email protected]>; 
Kinney, Michael D <[email protected]>; Pedro Falcato 
<[email protected]>; Ard Biesheuvel <[email protected]>
Subject: Re: [edk2-devel] CryptoPkg host test broken due to smoketest for RDRAND

On Fri, Jun 14, 2024 at 07:07:41AM GMT, Li, Yi wrote:
> All crypto host tests which consumed randlib broken due to:
> https://github.com/tianocore/edk2/pull/5714
> Not sure why this issue not reported  by CI when merge this PR.
> 
> The reason is that the ```BaseRngLibConstructor``` of rnglib is not called in 
> host test, so ```mRdRandSupported``` is not enabled.
> Then the Crypto API calls ```GetRandomNumber*``` will fail.
> GetRandomNumber64 (
>   OUT     UINT64  *Rand
>   )
> {
>   ......
>   if (!ArchIsRngSupported ()) {
>     return FALSE;
>   }
> 
> Is there a way to let unit test host to call the constructors correctly?

https://github.com/tianocore/edk2/pull/5775

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119572): https://edk2.groups.io/g/devel/message/119572
Mute This Topic: https://groups.io/mt/106666288/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to