Skip to content

Commit 328a12c

Browse files
authored
[NFC] Fix sycl-post-link tests to avoid potential race (#3031)
Change test to not use %T which may cause case conditions with other tests from the same directory. Signed-off-by: Sergey Dmitriev <[email protected]>
1 parent 2b6f2cd commit 328a12c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

llvm/test/tools/sycl-post-link/erase_used.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; This test checks that the post-link tool does not add "llvm.used" global to
22
; the output modules when splitting kernels.
33
;
4-
; RUN: sycl-post-link -split=kernel -S %s -o %T/files.table
5-
; RUN: FileCheck %s -input-file=%T/files_0.ll
6-
; RUN: FileCheck %s -input-file=%T/files_1.ll
4+
; RUN: sycl-post-link -split=kernel -S %s -o %t.files.table
5+
; RUN: FileCheck %s -input-file=%t.files_0.ll
6+
; RUN: FileCheck %s -input-file=%t.files_1.ll
77

88
target triple = "spir64-unknown-unknown-sycldevice"
99

llvm/test/tools/sycl-post-link/one-kernel-per-module.ll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %T/files.table
2-
; RUN: FileCheck %s -input-file=%T/files_0.ll --check-prefixes CHECK-MODULE0,CHECK
3-
; RUN: FileCheck %s -input-file=%T/files_1.ll --check-prefixes CHECK-MODULE1,CHECK
4-
; RUN: FileCheck %s -input-file=%T/files_2.ll --check-prefixes CHECK-MODULE2,CHECK
5-
; RUN: FileCheck %s -input-file=%T/files_0.sym --check-prefixes CHECK-MODULE0-TXT
6-
; RUN: FileCheck %s -input-file=%T/files_1.sym --check-prefixes CHECK-MODULE1-TXT
7-
; RUN: FileCheck %s -input-file=%T/files_2.sym --check-prefixes CHECK-MODULE2-TXT
1+
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %t.files.table
2+
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefixes CHECK-MODULE0,CHECK
3+
; RUN: FileCheck %s -input-file=%t.files_1.ll --check-prefixes CHECK-MODULE1,CHECK
4+
; RUN: FileCheck %s -input-file=%t.files_2.ll --check-prefixes CHECK-MODULE2,CHECK
5+
; RUN: FileCheck %s -input-file=%t.files_0.sym --check-prefixes CHECK-MODULE0-TXT
6+
; RUN: FileCheck %s -input-file=%t.files_1.sym --check-prefixes CHECK-MODULE1-TXT
7+
; RUN: FileCheck %s -input-file=%t.files_2.sym --check-prefixes CHECK-MODULE2-TXT
88
; ModuleID = 'one-kernel-per-module.ll'
99
source_filename = "one-kernel-per-module.ll"
1010
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"

0 commit comments

Comments
 (0)