Skip to content

Commit 606f269

Browse files
committed
Fix level zero specific test
Replace if(LINUX) with if(NOT WIN32) as the former wasn't working on some distros. Also, there was a rebase conflict which resulted with having two tests with the same name. Rename one of them.
1 parent 65c39c8 commit 606f269

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/adapters/level_zero/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(NOT UR_DPCXX)
77
# Tests that require kernels can't be used if we aren't generating
88
# device binaries
99
message(WARNING
10-
"UR_DPCXX is not defined, skipping adapter tests for level_zero")
10+
"UR_DPCXX is not defined, skipping some adapter tests for level_zero")
1111
else()
1212
add_adapter_test(level_zero
1313
FIXTURE KERNELS
@@ -26,14 +26,14 @@ else()
2626
generate_device_binaries kernel_names_header)
2727
endif()
2828

29-
if(LINUX)
29+
if(NOT WIN32)
3030
# Make L0 use CallMap from a seprate shared lib so that we can access the map
3131
# from the tests. This only seems to work on linux
3232
add_library(zeCallMap SHARED zeCallMap.cpp)
3333
target_compile_definitions(ur_adapter_level_zero PRIVATE UR_L0_CALL_COUNT_IN_TESTS)
3434
target_link_libraries(ur_adapter_level_zero PRIVATE zeCallMap)
3535

36-
add_adapter_test(level_zero
36+
add_adapter_test(level_zero_ze_calls
3737
FIXTURE DEVICES
3838
SOURCES
3939
event_cache_tests.cpp
@@ -42,5 +42,5 @@ if(LINUX)
4242
"UR_L0_LEAKS_DEBUG=1"
4343
)
4444

45-
target_link_libraries(test-adapter-level_zero PRIVATE zeCallMap)
45+
target_link_libraries(test-adapter-level_zero_ze_calls PRIVATE zeCallMap)
4646
endif()

0 commit comments

Comments
 (0)