File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,20 @@ static bool canQueryLatency(size_t nodeId) {
31
31
32
32
// return false;
33
33
// }
34
- if (!( GTEST_OUT_EQ (ret, 0 ) )) {
34
+ if (!GTEST_OUT_EQ (ret, 0 )) {
35
35
// EXPECT_NE(ret, 0);
36
36
return false ;
37
37
}
38
38
ret = hwloc_topology_load (topology);
39
39
// UT_ASSERTeq(ret, 0);
40
- if (!( GTEST_OUT_EQ (ret, 0 ) )) {
40
+ if (!GTEST_OUT_EQ (ret, 0 )) {
41
41
return false ;
42
42
}
43
43
44
44
hwloc_obj_t numaNode =
45
45
hwloc_get_obj_by_type (topology, HWLOC_OBJ_NUMANODE, nodeId);
46
46
// UT_ASSERTne(numaNode, nullptr);
47
- if (!( GTEST_OUT_NE (numaNode, nullptr ) )) {
47
+ if (!GTEST_OUT_NE (numaNode, nullptr )) {
48
48
return false ;
49
49
}
50
50
@@ -58,7 +58,14 @@ static bool canQueryLatency(size_t nodeId) {
58
58
&initiator, 0 , &value);
59
59
60
60
hwloc_topology_destroy (topology);
61
- return (ret == 0 );
61
+
62
+ if (!GTEST_OUT_EQ (ret, 0 )) {
63
+ return false ;
64
+ }
65
+ else {
66
+ return true ;
67
+ }
68
+ // return (ret == 0);
62
69
}
63
70
64
71
INSTANTIATE_TEST_SUITE_P (memspaceLowestLatencyTest, memspaceGetTest,
You can’t perform that action at this time.
0 commit comments