-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix skipping memspace_numa tests #134
Fix skipping memspace_numa tests #134
Conversation
@igchor please review - maybe you know a better way to fix this issue than that? |
test/memspace_numa.cpp
Outdated
}; | ||
|
||
struct numa_memspace_test : ::numa_nodes_test { | ||
void SetUp() override { | ||
::numa_nodes_test::SetUp(); | ||
|
||
if (skip_this_test) { |
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.
could we just create a helper function that checks condition from SetUp() and call it here?
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.
All other modified test classes call ::numa_nodes_test::SetUp()
anyway, so there should be only one check in ::numa_nodes_test::SetUp()
. All skuip_this_test
flags can be removed.
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.
@PatKamin ok originally we called GTEST_SKIP() only in SetUp() and this didn't work - see the description of the PR
test/memspace_numa.cpp
Outdated
}; | ||
|
||
struct numa_memspace_test : ::numa_nodes_test { | ||
void SetUp() override { | ||
::numa_nodes_test::SetUp(); | ||
|
||
if (skip_this_test) { |
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.
All other modified test classes call ::numa_nodes_test::SetUp()
anyway, so there should be only one check in ::numa_nodes_test::SetUp()
. All skuip_this_test
flags can be removed.
I think the problem is this: To fix this, you can just put memspace/provider creation under an if:
and you might also need to modify TearDown():
|
Fix skipping memspace_numa tests. GTEST_SKIP() called in numa_nodes_test does not skip numa_memspace_test and numa_memspace_provider_test tests. Signed-off-by: Lukasz Dorau <[email protected]>
6fe7145
to
79e68e9
Compare
Thanks! This is a lot simpler :-) |
Fix skipping memspace_numa tests.
GTEST_SKIP()
called innuma_nodes_test
does not skipnuma_memspace_test
andnuma_memspace_provider_test
tests.It fixes the following test failure: