-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: master
Are you sure you want to change the base?
BASE: added test of basic operations for malloc_with_hint #45
Conversation
Signed-off-by: Sergey Oblomov <[email protected]>
ef37478
to
77f7de7
Compare
|
||
shmem_free(p2); | ||
#endif /* HAVE_DECL_SHMEMX_MALLOC_WITH_HINT */ | ||
return TC_PASS; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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() */ |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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 (
tests-mellanox/verifier/basic/osh_basic_tc3.c
Line 405 in e1d39bb
p1 = shrealloc(0, 333); /* works as malloc() */ |
Signed-off-by: Sergey Oblomov [email protected]