Skip to content

Commit bd9a9a0

Browse files
againullKornevNikita
authored andcommitted
[SYCL][NFC] Fix post-commit after PR#16428 (#16430)
1 parent 07e6ae4 commit bd9a9a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/unittests/kernel-and-program/PersistentDeviceCodeCache.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ TEST_P(PersistentDeviceCodeCache, CorruptedCacheFiles) {
422422
<< "Item with corrupted binary file was read";
423423
ASSERT_NO_ERROR(llvm::sys::fs::remove_directories(ItemDir));
424424

425+
// Death tests (ASSERT_DEATH) rely on assert which is not available in release
426+
// mode.
427+
#ifndef NDEBUG
425428
// Unexpected 2 binaries in a single file.
426429
detail::PersistentDeviceCodeCache::putItemToDisc({Dev}, {&Img}, {},
427430
BuildOptions, NativeProg);
@@ -438,6 +441,7 @@ TEST_P(PersistentDeviceCodeCache, CorruptedCacheFiles) {
438441
{Dev}, {&Img}, {}, BuildOptions),
439442
"NumBinaries == 1");
440443
ASSERT_NO_ERROR(llvm::sys::fs::remove_directories(ItemDir));
444+
#endif
441445
}
442446

443447
/* Checks that lock file affects cache operations as expected:

0 commit comments

Comments
 (0)