Skip to content

Check error code of posix_memalign(). #10450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Srinivasan Subramanian <[email protected]>
Stephen Richmond <[email protected]>
Swen Boehm <[email protected]>
Thomas Vegas <[email protected]>
Tongliang Liao <[email protected]>
Tony Curtis <[email protected]>
Tzafrir Cohen <[email protected]>
Valentin Petrov <[email protected]>
Expand Down
8 changes: 5 additions & 3 deletions test/gtest/ucs/arch/test_x86_64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ class test_arch : public ucs::test {
*/
total_size = test_window_size + (2 * hole_size);

posix_memalign((void **)&test_window_src, align, total_size);
posix_memalign((void **)&test_window_dst, align, total_size);
posix_memalign((void **)&dup, align, total_size);
ASSERT_EQ(posix_memalign((void**)&test_window_src, align, total_size),
0);
ASSERT_EQ(posix_memalign((void**)&test_window_dst, align, total_size),
0);
ASSERT_EQ(posix_memalign((void**)&dup, align, total_size), 0);

src = test_window_src + hole_size;
dst = test_window_dst + hole_size;
Expand Down
Loading