From a04d2bc28e7d7fcaf34ad71e4a6608a13cf84197 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sat, 14 Jun 2014 00:51:14 +0000 Subject: Backing this one out since the counterpart needs to be sent upstream. This reverts commit 5ee320dd35fafc11eaf90c62198e08c6670e35b4. Change-Id: I1a9c6b06c3aca595f01c629f7649be743dc48e77 --- tests/string_test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/string_test.cpp') diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 2ab60d771..a468b97fc 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -17,7 +17,6 @@ #include #include -#include #include #include @@ -144,9 +143,9 @@ struct StringTestState { int max_alignment = 64; // TODO: fix the tests to not sometimes use twice their specified "MAX_LEN". - glob_ptr = reinterpret_cast(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * MAX_LEN + max_alignment)); - glob_ptr1 = reinterpret_cast(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * MAX_LEN + max_alignment)); - glob_ptr2 = reinterpret_cast(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * MAX_LEN + max_alignment)); + glob_ptr = reinterpret_cast(valloc(2 * sizeof(Character) * MAX_LEN + max_alignment)); + glob_ptr1 = reinterpret_cast(valloc(2 * sizeof(Character) * MAX_LEN + max_alignment)); + glob_ptr2 = reinterpret_cast(valloc(2 * sizeof(Character) * MAX_LEN + max_alignment)); InitLenArray(); -- cgit v1.2.3