Skip to content

Commit 7722990

Browse files
Corrected typing
1 parent d3ed8a1 commit 7722990

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

test/memspaces/memspace_lowest_latency.cpp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ static bool canQueryLatency(size_t nodeId) {
3131

3232
// return false;
3333
// }
34-
if (!(GTEST_OUT_EQ(ret, 0))) {
34+
if (!GTEST_OUT_EQ(ret, 0)) {
3535
// EXPECT_NE(ret, 0);
3636
return false;
3737
}
3838
ret = hwloc_topology_load(topology);
3939
//UT_ASSERTeq(ret, 0);
40-
if (!(GTEST_OUT_EQ(ret, 0))) {
40+
if (!GTEST_OUT_EQ(ret, 0)) {
4141
return false;
4242
}
4343

4444
hwloc_obj_t numaNode =
4545
hwloc_get_obj_by_type(topology, HWLOC_OBJ_NUMANODE, nodeId);
4646
//UT_ASSERTne(numaNode, nullptr);
47-
if (!(GTEST_OUT_NE(numaNode, nullptr))) {
47+
if (!GTEST_OUT_NE(numaNode, nullptr)) {
4848
return false;
4949
}
5050

@@ -58,7 +58,14 @@ static bool canQueryLatency(size_t nodeId) {
5858
&initiator, 0, &value);
5959

6060
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);
6269
}
6370

6471
INSTANTIATE_TEST_SUITE_P(memspaceLowestLatencyTest, memspaceGetTest,

0 commit comments

Comments
 (0)