Skip to content

Commit 7ed6c3d

Browse files
committed
XFAIL only for MSVC frontend
1 parent c0533b6 commit 7ed6c3d

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

openmp/runtime/test/lit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ if config.operating_system in ['Windows', 'Linux', 'FreeBSD', 'NetBSD', 'DragonF
137137
if config.operating_system in ['Linux']:
138138
config.available_features.add('hidden-helper')
139139

140-
if config.operating_system == 'Windows':
141-
config.available_features.add("windows")
140+
if config.compiler_frontend_variant == 'MSVC':
141+
config.available_features.add("msvc")
142142

143143
target_arch = getattr(config, 'target_arch', None)
144144
if target_arch:

openmp/runtime/test/lit.site.cfg.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config.has_libatomic = @LIBOMP_HAVE_LIBATOMIC@
2121
config.is_standalone_build = @OPENMP_STANDALONE_BUILD@
2222
config.has_omit_frame_pointer_flag = @OPENMP_TEST_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS@
2323
config.target_arch = "@LIBOMP_ARCH@"
24+
config.compiler_frontend_variant="@CMAKE_C_COMPILER_FRONTEND_VARIANT@"
2425

2526
# Let the main config do the real work.
2627
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")

openmp/runtime/test/transform/interchange/iterfor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: windows
1+
// XFAIL: msvc
22
// Fails on windows due to issue #129023
33
// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
44

openmp/runtime/test/transform/tile/iterfor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: windows
1+
// XFAIL: msvc
22
// Fails on windows due to issue #129023
33
// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
44

openmp/runtime/test/worksharing/for/omp_for_collapse_LowerTriangularLess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: windows
1+
// XFAIL: msvc
22
// Fails on windows due to issue #129023
33
// RUN: %libomp-compile-and-run
44
#include <stdio.h>

openmp/runtime/test/worksharing/for/omp_for_collapse_LowerTriangularLessEqual.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: windows
1+
// XFAIL: msvc
22
// Fails on windows due to issue #129023
33
// RUN: %libomp-compile-and-run
44
#include <stdio.h>

openmp/runtime/test/worksharing/for/omp_for_collapse_UpperTriangular.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: windows
1+
// XFAIL: msvc
22
// Fails on windows due to issue #129023
33
// RUN: %libomp-compile-and-run
44
#include <stdio.h>

0 commit comments

Comments
 (0)