Skip to content

Commit b3c8987

Browse files
authored
[SYCL] Avoid testing race condition
Use no output file instead of default output file in LIT tests. This occasionally caused errors on windows when multiple files compile to the same output file. Using `-fsyntax-only` hjere also avoids running the full compiler pipeline See #7872 for more context
1 parent c07039e commit b3c8987

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/test/basic_tests/header_footer_diagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -Werror=reserved-identifier -Werror=old-style-cast %s
1+
// RUN: %clangxx -fsycl -Werror=reserved-identifier -Werror=old-style-cast %s -fsyntax-only
22

33
// Check that the generated header and footer files do not generate
44
// errors when pedantic warnings are enabled.

sycl/test/basic_tests/is_group_trait.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s
1+
// RUN: %clangxx -fsycl %s -fsyntax-only
22

33
#include <sycl/sycl.hpp>
44

sycl/test/esimd/slm_init_local_accessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s
1+
// RUN: %clangxx -fsycl %s -fsyntax-only
22

33
// This test verifies usage of slm_init and local_accessor in different kernels
44
// passes.

0 commit comments

Comments
 (0)