]>
git.proxmox.com Git - efi-boot-shim.git/blob - test-pe-util.c
1 // SPDX-License-Identifier: BSD-2-Clause-Patent
3 * test-pe-util.c - test PE utilities
12 test_is_page_aligned(void)
14 assert_true_return(IS_PAGE_ALIGNED(0), -1, "\n");
15 assert_false_return(IS_PAGE_ALIGNED(1), -1, "\n");
16 assert_false_return(IS_PAGE_ALIGNED(4095), -1, "\n");
17 assert_true_return(IS_PAGE_ALIGNED(4096), -1, "\n");
18 assert_false_return(IS_PAGE_ALIGNED(4097), -1, "\n");
27 test(test_is_page_aligned
);