Skip to content

Commit 07d460c

Browse files
committed
[Review] Use AMD_COMGR_CACHE instead of AMD_COMGR_CACHE_DIR to disable the cache in the tests
1 parent dff136d commit 07d460c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

amd/comgr/test-lit/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
# By default, disable the cache for the tests.
1919
# Test for the cache must explicitly enable this variable.
20-
config.environment['AMD_COMGR_CACHE_DIR'] = ""
20+
config.environment['AMD_COMGR_CACHE'] = "0"

amd/comgr/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ endif()
195195
# include the .lib/.dll directory.
196196
if (UNIX)
197197
set_tests_properties(${test_name}
198-
PROPERTIES ENVIRONMENT "AMD_COMGR_CACHE_DIR=;")
198+
PROPERTIES ENVIRONMENT "AMD_COMGR_CACHE=0;")
199199
else()
200200
set_tests_properties(${test_name}
201-
PROPERTIES ENVIRONMENT "PATH=$<TARGET_LINKER_FILE_DIR:amd_comgr>;AMD_COMGR_CACHE_DIR=;")
201+
PROPERTIES ENVIRONMENT "PATH=$<TARGET_LINKER_FILE_DIR:amd_comgr>;AMD_COMGR_CACHE=0;")
202202
endif()
203203
endmacro()
204204

0 commit comments

Comments
 (0)