File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ struct memspaceProviderTest : ::memspaceGetTest {
80
80
void SetUp () override {
81
81
::memspaceGetTest::SetUp ();
82
82
83
+ auto [isQuerySupported, memspaceGet] = ::memspaceGetTest::GetParam ();
84
+ bool restinpiss = isQuerySupported (nodeIds.front ());
85
+ ASSERT_TRUE (false ) << " is skipped?" << ::memspaceGetTest::IsSkipped () << " | res: " << restinpiss;
83
86
if (::memspaceGetTest::IsSkipped ()) {
87
+ // it uses a method from superclass as its own, so fuck you
84
88
GTEST_SKIP ();
85
89
}
86
90
Original file line number Diff line number Diff line change 14
14
canQueryLatency is used in a parameter generator as a functional pointer
15
15
https://man.archlinux.org/man/hwloc_memattr_get_value.3.en
16
16
0 on success - hwloc_memattr_get_value
17
+ assume overall failure
18
+ expect instead of add_failure: more verbosity
17
19
*/
18
20
19
21
static bool canQueryLatency (size_t nodeId) {
20
22
hwloc_topology_t topology = nullptr ;
21
23
int ret = hwloc_topology_init (&topology);
22
24
// UT_ASSERTeq(ret, 0);
23
- EXPECT_NE (ret, 0 );
25
+ // EXPECT_NE(ret, 0);
26
+ if (ret == 0 ) {
27
+ // ADD_FAILURE();
28
+ EXPECT_NE (ret, 0 );
29
+ return true ; // false;
30
+ }
24
31
ret = hwloc_topology_load (topology);
25
32
UT_ASSERTeq (ret, 0 );
26
33
You can’t perform that action at this time.
0 commit comments