Skip to content

Commit e3e2540

Browse files
No segfaults after adding ASSERT_NO_FATAL_FAILURE
1 parent ed14816 commit e3e2540

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/memspaces/memspace_fixtures.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ TEST_P(memspaceProviderTest, allocLocalMt) {
183183
int mode = -1;
184184
std::vector<size_t> boundNodeIds;
185185
size_t allocNodeId = SIZE_MAX;
186-
getAllocationPolicy(ptr, maxNodeId, mode, boundNodeIds, allocNodeId);
186+
ASSERT_NO_FATAL_FAILURE(getAllocationPolicy(ptr, maxNodeId, mode, boundNodeIds, allocNodeId));
187187

188188
// Get the CPUs associated with the specified NUMA node.
189189
hwloc_obj_t allocNodeObj =

test/memspaces/memspace_helpers.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ void getAllocationPolicy(void *ptr, unsigned long maxNodeId, int &mode,
3737
int ret = get_mempolicy(&memMode, memNodeMasks.data(),
3838
nrUlongs * bitsPerUlong, ptr, MPOL_F_ADDR);
3939
ASSERT_EQ(ret, 0);
40-
4140
mode = memMode;
4241

4342
ASSERT_EQ(boundNodeIds.size(), 0);

0 commit comments

Comments
 (0)