Skip to content

Commit 3a41c7b

Browse files
authored
[OpenMP] Mark Failing OpenMP Tests as XFAIL on Windows (#129040)
This patch marks specific OpenMP runtime tests as XFAIL on Windows due to failures reported in #129023
1 parent 919d293 commit 3a41c7b

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed

openmp/runtime/test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ 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.compiler_frontend_variant == 'MSVC' or config.compiler_simulate_id == 'MSVC':
141+
config.available_features.add("msvc")
142+
140143
target_arch = getattr(config, 'target_arch', None)
141144
if target_arch:
142145
config.available_features.add(target_arch + '-target-arch')

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ 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@"
25+
config.compiler_simulate_id = "@CMAKE_C_SIMULATE_ID@"
2426

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// XFAIL: msvc
2+
// Fails on windows due to issue #129023
13
// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
24

35
#ifndef HEADER

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// XFAIL: msvc
2+
// Fails on windows due to issue #129023
13
// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
24

35
#ifndef HEADER

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// XFAIL: msvc
2+
// Fails on windows due to issue #129023
13
// RUN: %libomp-compile-and-run
24
#include <stdio.h>
35
#include <stdlib.h>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// XFAIL: msvc
2+
// Fails on windows due to issue #129023
13
// RUN: %libomp-compile-and-run
24
#include <stdio.h>
35
#include <stdlib.h>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// XFAIL: msvc
2+
// Fails on windows due to issue #129023
13
// RUN: %libomp-compile-and-run
24
#include <stdio.h>
35
#include <stdlib.h>

0 commit comments

Comments
 (0)