Skip to content

Commit 8d1e141

Browse files
authored
[SYCL][LIT] Disable tests that fail with libc++ (#19618)
These tests fail when the compiler is built with libc++. All have Github issues tracking them. Some of the tests are gtest and not lit so I had to disable those in CMake. Using defines isn't safe because the problem is the compiler being compiled with libc++, not necessarily it currently being used to compile the tests. --------- Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 05db68c commit 8d1e141

26 files changed

+72
-2
lines changed

sycl/test/basic_tests/accessor/host-acc-assign-op.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %t.out
33

4+
// XFAIL: libcxx
5+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
6+
47
#include <sycl/sycl.hpp>
58

69
int main() {

sycl/test/basic_tests/accessor/target_device.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22

3+
// XFAIL: libcxx
4+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
5+
36
// This short test simply confirms that target::device
47
// is supported correctly.
58
// TODO: delete this test and test the functionality
@@ -26,4 +29,4 @@ int main() {
2629
assert(kernelResult == 5);
2730

2831
return 0;
29-
}
32+
}

sycl/test/basic_tests/builtins/relational_builtins.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
22
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t.out %}
33

4+
// XFAIL: libcxx
5+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
6+
47
// NOTE: Compile the test fully to ensure the library exports the right host
58
// symbols.
69

sycl/test/basic_tests/device-selectors-exception.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// all.
66
// RUN: %if preview-breaking-changes-supported %{ env ONEAPI_DEVICE_SELECTOR="*:-1" %t.out %}
77

8+
// XFAIL: libcxx
9+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
10+
811
#include <sycl/sycl.hpp>
912
using namespace sycl;
1013

sycl/test/basic_tests/group.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %t.out
33

4+
// XFAIL: libcxx
5+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
6+
47
//==--------------- group.cpp - SYCL group test ----------------------------==//
58
//
69
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/host_image_accessor_read.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
22
// RUN: %t.out
33

4+
// XFAIL: libcxx
5+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
6+
47
//==---- host_image_accessor_read.cpp - SYCL host image accessor check ----==//
58
//
69
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/id.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %clangxx -D__SYCL_DISABLE_ID_TO_INT_CONV__ -fsycl %s -o %t_dis.out
44
// RUN: %t_dis.out
55

6+
// XFAIL: libcxx
7+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
8+
69
//==--------------- id.cpp - SYCL id test ----------------------------------==//
710
//
811
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/item.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %t.out
3+
// XFAIL: libcxx
4+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
35
//==--------------- item.cpp - SYCL item test ------------------------------==//
46
//
57
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/range.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %t.out
3+
// XFAIL: libcxx
4+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
35
//==--------------- range.cpp - SYCL range test ----------------------------==//
46
//
57
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/vectors/vectors.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// RUN: %t_default.out
33
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t_vec.out %}
44
// RUN: %if preview-breaking-changes-supported %{ %t_vec.out %}
5+
// XFAIL: libcxx
6+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19616
57

68
//==--------------- vectors.cpp - SYCL vectors test ------------------------==//
79
//

0 commit comments

Comments
 (0)