Skip to content

Commit b3bb5a4

Browse files
committed
disable umf_standalone_examples test
ref: #674
1 parent f320b36 commit b3bb5a4

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

test/CMakeLists.txt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,12 @@ endif()
391391

392392
# Tests of examples as standalone projects. TODO: enable this for Windows (maybe
393393
# replace test_examples.sh with CMake script?)
394-
if(LINUX
394+
#
395+
# XXX: This test is disabled as it is broken - it can silently install the library without user consent,
396+
# or it fails if there is no permission to do it.
397+
# https://github.com/oneapi-src/unified-memory-framework/issues/674
398+
#
399+
if(FALSE AND LINUX
395400
AND UMF_BUILD_SHARED_LIBRARY
396401
AND NOT
397402
(UMF_USE_ASAN
@@ -440,13 +445,13 @@ if(LINUX
440445
)
441446
endif()
442447

443-
if(NOT UMF_DISABLE_HWLOC)
444-
add_test(
445-
NAME umf_standalone_examples
446-
COMMAND
447-
${UMF_CMAKE_SOURCE_DIR}/test/test_examples.sh
448-
${UMF_CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
449-
${CMAKE_INSTALL_PREFIX} ${EXAMPLES}
450-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
451-
endif()
448+
if(NOT UMF_DISABLE_HWLOC)
449+
add_test(
450+
NAME umf_standalone_examples
451+
COMMAND
452+
${UMF_CMAKE_SOURCE_DIR}/test/test_examples.sh
453+
${UMF_CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
454+
${CMAKE_INSTALL_PREFIX} ${EXAMPLES}
455+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
456+
endif()
452457
endif()

0 commit comments

Comments
 (0)