Skip to content

Commit 904f184

Browse files
authored
[SYCL][NFC] Update libsycl file print test (#6812)
The test which verifies the proper -print-file-name=libsycl.so output was to dependent on external existence of the library itself. Update the test so we use an internal location check.
1 parent 7bd0dad commit 904f184

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/test/Driver/Inputs/SYCL/lib/libsycl.so

Whitespace-only changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// UNSUPPORTED: system-windows
22

33
// -print-file-name=libsycl.so
4-
// RUN: %clangxx -print-file-name=libsycl.so 2>&1 | FileCheck %s --check-prefix=PRINT_LIBSYCL
5-
// RUN: %clangxx -fsycl -print-file-name=libsycl.so 2>&1 | FileCheck %s --check-prefix=PRINT_LIBSYCL
4+
// RUN: %clangxx -print-file-name=libsycl.so --sysroot=%S/Inputs/SYCL 2>&1 | FileCheck %s --check-prefix=PRINT_LIBSYCL
5+
// RUN: %clangxx -fsycl -print-file-name=libsycl.so --sysroot=%S/Inputs/SYCL 2>&1 | FileCheck %s --check-prefix=PRINT_LIBSYCL
66
// PRINT_LIBSYCL: {{.*}}lib{{(\\\\|/)}}libsycl.so

0 commit comments

Comments
 (0)