Skip to content

Commit d9122de

Browse files
authored
[SYCL][E2E] Build test output to separate files (#15631)
Currently, many tests that need to check executables built in different ways will build over the same output file. This patch edits these tests to instead build each executable to a different output file. This should not have any functional differences in behavior, however it will help us later if we want to cache the built executables to run seperately.
1 parent b039ffa commit d9122de

File tree

68 files changed

+400
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+400
-400
lines changed

sycl/test-e2e/AddressSanitizer/bad-free/bad-free-minus1.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O0 -g -o %t
5-
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t
7-
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %force_device_asan_rt %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O0 -g -o %t2.out
5+
// RUN: %force_device_asan_rt %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t3.out
7+
// RUN: %force_device_asan_rt %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
88
#include <sycl/usm.hpp>
99

1010
constexpr size_t N = 64;

sycl/test-e2e/AddressSanitizer/bad-free/bad-free-plus1.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O0 -g -o %t
5-
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t
7-
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %force_device_asan_rt %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O0 -g -o %t2.out
5+
// RUN: %force_device_asan_rt %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t3.out
7+
// RUN: %force_device_asan_rt %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
88
#include <sycl/usm.hpp>
99

1010
constexpr size_t N = 64;

sycl/test-e2e/AddressSanitizer/common/option-redzone-size.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -DUNSAFE -O0 -g -o %t
3-
// RUN: env UR_LAYER_ASAN_OPTIONS=redzone:64 %{run} not %t 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -DSAFE -O0 -g -o %t
5-
// RUN: env UR_LOG_SANITIZER=level:debug UR_LAYER_ASAN_OPTIONS=redzone:8 %{run} %t 2>&1 | FileCheck --check-prefixes CHECK-MIN %s
6-
// RUN: env UR_LOG_SANITIZER=level:debug UR_LAYER_ASAN_OPTIONS=max_redzone:4096 %{run} %t 2>&1 | FileCheck --check-prefixes CHECK-MAX %s
2+
// RUN: %{build} %device_asan_flags -DUNSAFE -O0 -g -o %t1.out
3+
// RUN: env UR_LAYER_ASAN_OPTIONS=redzone:64 %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -DSAFE -O0 -g -o %t2.out
5+
// RUN: env UR_LOG_SANITIZER=level:debug UR_LAYER_ASAN_OPTIONS=redzone:8 %{run} %t2.out 2>&1 | FileCheck --check-prefixes CHECK-MIN %s
6+
// RUN: env UR_LOG_SANITIZER=level:debug UR_LAYER_ASAN_OPTIONS=max_redzone:4096 %{run} %t2.out 2>&1 | FileCheck --check-prefixes CHECK-MAX %s
77

88
#include <sycl/usm.hpp>
99

sycl/test-e2e/AddressSanitizer/double-free/double-free.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:0" %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O0 -g -o %t
5-
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:0" %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t
7-
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:0" %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:0" %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O0 -g -o %t2.out
5+
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:0" %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t3.out
7+
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:0" %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
88
#include <sycl/usm.hpp>
99

1010
constexpr size_t N = 64;

sycl/test-e2e/AddressSanitizer/misaligned/misalign-int.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t
5-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t
7-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t3.out 2>&1 | FileCheck %s
88
#include <sycl/detail/core.hpp>
99
#include <sycl/usm.hpp>
1010

sycl/test-e2e/AddressSanitizer/misaligned/misalign-long.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t
5-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t
7-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t3.out 2>&1 | FileCheck %s
88
#include <sycl/detail/core.hpp>
99
#include <sycl/usm.hpp>
1010

sycl/test-e2e/AddressSanitizer/misaligned/misalign-short.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t
5-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t
7-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: env SYCL_PREFER_UR=1 %{run} not %t3.out 2>&1 | FileCheck %s
88
#include <sycl/detail/core.hpp>
99
#include <sycl/usm.hpp>
1010

sycl/test-e2e/AddressSanitizer/nullpointer/global_nullptr.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88

99
// See https://github.com/intel/llvm/issues/15453
1010
// UNSUPPORTED: gpu-intel-dg2

sycl/test-e2e/AddressSanitizer/nullpointer/private_nullptr.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88

99
// FIXME: There's an issue in gfx driver, so this test pending here.
1010
// XFAIL: *

sycl/test-e2e/AddressSanitizer/out-of-bounds/DeviceGlobal/device_global.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t.out
3-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t.out
5-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t.out
7-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88

99
#include <sycl/detail/core.hpp>
1010

sycl/test-e2e/AddressSanitizer/out-of-bounds/DeviceGlobal/device_global_image_scope.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t.out
3-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t.out
5-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t.out
7-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88

99
#include <sycl/detail/core.hpp>
1010

sycl/test-e2e/AddressSanitizer/out-of-bounds/DeviceGlobal/device_global_image_scope_unaligned.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -O0 -g -o %t.out
3-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
4-
// RUN: %{build} %device_asan_flags -O1 -g -o %t.out
5-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
6-
// RUN: %{build} %device_asan_flags -O2 -g -o %t.out
7-
// RUN: %{run} not %t.out 2>&1 | FileCheck %s
2+
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
4+
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
6+
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88

99
#include <sycl/detail/core.hpp>
1010

sycl/test-e2e/AddressSanitizer/out-of-bounds/USM/parallel_for_char.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t
9-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t
11-
// RUN: %{run} not %t &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
2+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t4.out
9+
// RUN: %{run} not %t4.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t5.out
11+
// RUN: %{run} not %t5.out &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
1212

1313
#include <sycl/detail/core.hpp>
1414

sycl/test-e2e/AddressSanitizer/out-of-bounds/USM/parallel_for_double.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// REQUIRES: linux, aspect-fp64
2-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t
9-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t
11-
// RUN: %{run} not %t &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
2+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t4.out
9+
// RUN: %{run} not %t4.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t5.out
11+
// RUN: %{run} not %t5.out &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
1212

1313
#include <sycl/detail/core.hpp>
1414

sycl/test-e2e/AddressSanitizer/out-of-bounds/USM/parallel_for_func.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t
9-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t
11-
// RUN: %{run} not %t &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
2+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t4.out
9+
// RUN: %{run} not %t4.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t5.out
11+
// RUN: %{run} not %t5.out &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
1212

1313
#include <sycl/detail/core.hpp>
1414

sycl/test-e2e/AddressSanitizer/out-of-bounds/USM/parallel_for_int.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t
9-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t
11-
// RUN: %{run} not %t &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
2+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t4.out
9+
// RUN: %{run} not %t4.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t5.out
11+
// RUN: %{run} not %t5.out &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
1212

1313
#include <sycl/detail/core.hpp>
1414

sycl/test-e2e/AddressSanitizer/out-of-bounds/USM/parallel_for_short.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// REQUIRES: linux
2-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t
3-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t
5-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6-
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
7-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8-
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t
9-
// RUN: %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10-
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t
11-
// RUN: %{run} not %t &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
2+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O0 -g -o %t1.out
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
4+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O1 -g -o %t2.out
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
6+
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t3.out
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
8+
// RUN: %{build} %device_asan_flags -DMALLOC_HOST -O2 -g -o %t4.out
9+
// RUN: %{run} not %t4.out 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
10+
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O2 -g -o %t5.out
11+
// RUN: %{run} not %t5.out &> %t.txt ; FileCheck --check-prefixes CHECK,CHECK-SHARED --input-file %t.txt %s
1212

1313
#include <sycl/detail/core.hpp>
1414

0 commit comments

Comments
 (0)