Skip to content

Commit ae2e98a

Browse files
committed
forgot to qualify leak check for windows
1 parent 4e4b93e commit ae2e98a

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

sycl/test-e2e/KernelCompiler/kernel_compiler_opencl.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@
99
// REQUIRES: (opencl || level_zero)
1010
// UNSUPPORTED: accelerator
1111

12-
// The leak check env var is set even if it might be ignored by some backends.
13-
1412
// -- Test the kernel_compiler with OpenCL source.
1513
// RUN: %{build} -o %t.out
16-
// RUN: env UR_L0_LEAKS_DEBUG=1 %{run} %t.out
14+
// RUN: %{run} %t.out
15+
// RUN: %{l0_leak_check} %{run} %t.out
1716

1817
// -- Test again, with caching.
19-
// DEFINE: %{cache_vars} = env UR_L0_LEAKS_DEBUG=1 env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
18+
// DEFINE: %{cache_vars} = env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
2019
// RUN: rm -rf %t/cache_dir
2120
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
2221
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2322

23+
// -- Add leak check.
24+
// RUN: rm -rf %t/cache_dir
25+
// RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
26+
// RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
27+
2428
// CHECK-WRITTEN-TO-CACHE: Code caching: enabled
2529
// CHECK-WRITTEN-TO-CACHE-NOT: *** Code caching: kernel_compiler using cached binary
2630
// CHECK-WRITTEN-TO-CACHE: *** Code caching: kernel_compiler binary has been cached

sycl/test-e2e/KernelCompiler/kernel_compiler_sycl.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,25 @@
99
// REQUIRES: (opencl || level_zero)
1010
// UNSUPPORTED: accelerator
1111

12-
// The leak check env var is set even if it might be ignored by some backends.
13-
1412
// -- Test the kernel_compiler with SYCL source.
1513
// RUN: %{build} -o %t.out
16-
// RUN: env UR_L0_LEAKS_DEBUG=1 %{run} %t.out
14+
// RUN: %{run} %t.out
15+
// RUN: %{l0_leak_check} %{run} %t.out
1716

1817
// -- Test again, with caching.
1918
// 'reading-from-cache' is just a string we pass to differentiate between the
2019
// two runs.
2120

22-
// DEFINE: %{cache_vars} = env UR_L0_LEAKS_DEBUG=1 env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
21+
// DEFINE: %{cache_vars} = %{l0_leak_check} env SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_TRACE=1 SYCL_CACHE_DIR=%t/cache_dir
2322
// RUN: rm -rf %t/cache_dir
2423
// RUN: %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
2524
// RUN: %{cache_vars} %t.out reading-from-cache 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
2625

26+
// -- Add leak check.
27+
// RUN: rm -rf %t/cache_dir
28+
// RUN: %{l0_leak_check} %{cache_vars} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK-WRITTEN-TO-CACHE
29+
// RUN: %{l0_leak_check} %{cache_vars} %t.out reading-from-cache 2>&1 | FileCheck %s --check-prefixes=CHECK-READ-FROM-CACHE
30+
2731
// CHECK-WRITTEN-TO-CACHE: Code caching: enabled
2832
// CHECK-WRITTEN-TO-CACHE-NOT: *** Code caching: kernel_compiler using cached binary
2933
// CHECK-WRITTEN-TO-CACHE: *** Code caching: kernel_compiler binary has been cached

0 commit comments

Comments
 (0)