Add the --disable-thp option to support cross compiling.

This resolves #669.
This commit is contained in:
Jason Evans
2017-05-30 09:54:49 -07:00
parent bf6673a070
commit c606a87d2a
8 changed files with 53 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ TEST_BEGIN(test_pages_huge) {
assert_ptr_not_null(pages, "Unexpected pages_map() error");
hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE));
assert_b_ne(pages_huge(hugepage, HUGEPAGE), have_thp,
assert_b_ne(pages_huge(hugepage, HUGEPAGE), config_thp,
"Unexpected pages_huge() result");
assert_false(pages_nohuge(hugepage, HUGEPAGE),
"Unexpected pages_nohuge() result");