Skip to content

Commit a799eeb

Browse files
committed
add file for memtarget tests
1 parent c808547 commit a799eeb

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ if(LINUX) # OS-specific functions are implemented only for Linux now
215215
NAME mempolicy
216216
SRCS memspaces/mempolicy.cpp
217217
LIBS ${LIBNUMA_LIBRARIES})
218+
add_umf_test(
219+
NAME memtarget
220+
SRCS memspaces/memtarget.cpp
221+
LIBS ${LIBNUMA_LIBRARIES})
218222
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND UMF_BUILD_FUZZTESTS)
219223
add_subdirectory(fuzz)
220224
endif()

test/memspaces/memtarget.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (C) 2024 Intel Corporation
2+
// Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
5+
#include "memspace_helpers.hpp"
6+
#include <umf/memspace.h>
7+
#include <umf/memtarget.h>
8+
9+
using umf_test::test;

0 commit comments

Comments
 (0)