Update old_ABI test for CompareGuid
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
b23462d47c
commit
88f0e1cca8
@ -3,6 +3,10 @@
|
||||
#include <efi.h>
|
||||
#include <efilib.h>
|
||||
|
||||
/* EFI_TIMESTAMP_PROTOCOL */
|
||||
#define TEST_GUID { 0xafbfde41, 0x2e6e, 0x4262,\
|
||||
{ 0xba, 0x65, 0x62, 0xb9, 0x23, 0x6e, 0x54, 0x95 }}
|
||||
|
||||
EFI_STATUS
|
||||
efi_main (EFI_HANDLE image EFI_UNUSED, EFI_SYSTEM_TABLE *systab EFI_UNUSED)
|
||||
{
|
||||
@ -16,6 +20,14 @@ efi_main (EFI_HANDLE image EFI_UNUSED, EFI_SYSTEM_TABLE *systab EFI_UNUSED)
|
||||
Dest = AllocatePool(test_str_size);
|
||||
CopyMem(Dest, test_str, test_str_size);
|
||||
Copy = ReallocatePool(Dest, test_str_size, test_str_size+10);
|
||||
Print(u"Done!\r\n");
|
||||
Print(u"Done CopyMem and ReallocatePool!\r\n");
|
||||
|
||||
EFI_GUID a = TEST_GUID;
|
||||
EFI_GUID b = TEST_GUID;
|
||||
if (CompareGuid(&a, &b) == 0) {
|
||||
Print(u"CompareGuid ok!\r\n");
|
||||
} else {
|
||||
Print(u"CompareGuid fail!\r\n");
|
||||
}
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user