Skip to content
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

BASE: added test of basic operations for malloc_with_hint #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hoopoepg
Copy link
Collaborator

  • basic functionality for shmem_alloc_with_hont

Signed-off-by: Sergey Oblomov [email protected]

@hoopoepg hoopoepg requested a review from yosefe May 10, 2019 19:37
@hoopoepg hoopoepg force-pushed the topic/malloc-with-hint-basic-ops branch from ef37478 to 77f7de7 Compare May 15, 2019 16:23

shmem_free(p2);
#endif /* HAVE_DECL_SHMEMX_MALLOC_WITH_HINT */
return TC_PASS;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there something like TC_SKIP?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is, but it is used in aggregate test state (higher level). here is no way to set personal test result.
I updated logging of tests to print more accurate results, also added warning message on missing API

shmem_free(p2);

/* corner cases */
p2 = shmem_realloc(p1, 0); /* works as shfree() */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we also check realloc(NULL)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

realloc(NULL) is tested in another case (

p1 = shrealloc(0, 333); /* works as malloc() */
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants