Skip to content

Commit 0a1665a

Browse files
authored
[UR] Fix function name collision in l0 v2 tests (#17540)
The level_zero v2 tests define a function named "add_unittest", which clashes with a function of the same name from LLVM.
1 parent 6de7413 commit 0a1665a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unified-runtime/test/adapters/level_zero/v2/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# See LICENSE.TXT
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

6-
function(add_unittest name)
6+
function(add_l0_v2_unittest name)
77
set(target test-adapter-${name})
88
add_adapter_test(${name}
99
FIXTURE DEVICES
@@ -29,7 +29,7 @@ function(add_unittest name)
2929
)
3030
endfunction()
3131

32-
add_unittest(level_zero_command_list_cache
32+
add_l0_v2_unittest(level_zero_command_list_cache
3333
command_list_cache_test.cpp
3434
${PROJECT_SOURCE_DIR}/source/adapters/level_zero/v2/command_list_cache.cpp
3535
)
@@ -38,7 +38,7 @@ if(CXX_HAS_CFI_SANITIZE)
3838
message(WARNING "Level Zero V2 Event Pool tests are disabled when using CFI sanitizer")
3939
message(NOTE "See https://github.com/oneapi-src/unified-runtime/issues/2324")
4040
else()
41-
add_unittest(level_zero_event_pool
41+
add_l0_v2_unittest(level_zero_event_pool
4242
event_pool_test.cpp
4343
${PROJECT_SOURCE_DIR}/source/ur/ur.cpp
4444
${PROJECT_SOURCE_DIR}/source/adapters/level_zero/adapter.cpp

0 commit comments

Comments
 (0)