Skip to content

Commit 94f91a7

Browse files
authored
[NFC][sycl-post-link] Refactor test to improve stability (#20982)
The test failed on Windows with the following error: > sycl-post-link: error opening file llvm\test\tools\sycl-post-link\device-requirements\Output\aspects.ll.tmp.files.table: The requested operation cannot be performed on a file with a user-mapped section open. To avoid this issue, we use different file names for sycl-post-link runs.
1 parent d3150b9 commit 94f91a7

File tree

1 file changed

+5
-5
lines changed
  • llvm/test/tools/sycl-post-link/device-requirements

1 file changed

+5
-5
lines changed

llvm/test/tools/sycl-post-link/device-requirements/aspects.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
; });
1414
; }
1515

16-
; RUN: sycl-post-link -properties -split=auto < %s -o %t.files.table
17-
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP-AUTO-SPLIT
16+
; RUN: sycl-post-link -properties -split=auto < %s -o %t.auto.table
17+
; RUN: FileCheck %s -input-file=%t.auto_0.prop --check-prefix CHECK-PROP-AUTO-SPLIT
1818

19-
; RUN: sycl-post-link -properties -split=kernel < %s -o %t.files.table
20-
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP-KERNEL-SPLIT-1
21-
; RUN: FileCheck %s -input-file=%t.files_1.prop --check-prefix CHECK-PROP-KERNEL-SPLIT-0
19+
; RUN: sycl-post-link -properties -split=kernel < %s -o %t.kernel.table
20+
; RUN: FileCheck %s -input-file=%t.kernel_0.prop --check-prefix CHECK-PROP-KERNEL-SPLIT-1
21+
; RUN: FileCheck %s -input-file=%t.kernel_1.prop --check-prefix CHECK-PROP-KERNEL-SPLIT-0
2222

2323
; CHECK-PROP-AUTO-SPLIT: [SYCL/device requirements]
2424
; CHECK-PROP-AUTO-SPLIT-NEXT: aspects=2|gCAAAAAAAAAAAAAABAAAAYAAAAQCAAAAMAAAAA

0 commit comments

Comments
 (0)