@@ -51,7 +51,7 @@ struct numaNodesTest : ::umf_test::test {
5151 unsigned long maxNodeId = 0 ;
5252};
5353
54- using isQuerySupportedFunc = bool (*)(size_t );
54+ using isQuerySupportedFunc = void (*)(size_t );
5555using memspaceGetFunc = umf_const_memspace_handle_t (*)();
5656using memspaceGetParams = std::tuple<isQuerySupportedFunc, memspaceGetFunc>;
5757
@@ -65,9 +65,10 @@ struct memspaceGetTest : ::numaNodesTest,
6565 }
6666
6767 auto [isQuerySupported, memspaceGet] = this ->GetParam ();
68+ isQuerySupported (nodeIds.front ());
6869
69- if (! isQuerySupported (nodeIds. front () )) {
70- GTEST_SKIP () ;
70+ if (IS_SKIPPED_OR_FAILED ( )) {
71+ return ;
7172 }
7273
7374 hMemspace = memspaceGet ();
@@ -81,8 +82,18 @@ struct memspaceProviderTest : ::memspaceGetTest {
8182 void SetUp () override {
8283 ::memspaceGetTest::SetUp ();
8384
84- if (::memspaceGetTest::IsSkipped ()) {
85- GTEST_SKIP ();
85+ if (numa_available () == -1 || numa_all_nodes_ptr == nullptr ) {
86+ GTEST_SKIP () << " No available NUMA support; skipped" ;
87+ }
88+
89+ auto [isQuerySupported, memspaceGet] = ::memspaceGetTest::GetParam ();
90+ isQuerySupported (nodeIds.front ());
91+
92+ // The test has been marked as skipped in isQuerySupported,
93+ // repeating GTEST_SKIP in fixture would only duplicate
94+ // the output message
95+ if (IS_SKIPPED_OR_FAILED ()) {
96+ return ;
8697 }
8798
8899 umf_result_t ret =
0 commit comments