[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
This commit is contained in:
Omair Javaid 2025-03-10 19:23:10 +05:00 committed by GitHub
parent 919d293176
commit 3a41c7b483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 15 additions and 0 deletions

View File

@ -137,6 +137,9 @@ if config.operating_system in ['Windows', 'Linux', 'FreeBSD', 'NetBSD', 'DragonF
if config.operating_system in ['Linux']:
config.available_features.add('hidden-helper')
if config.compiler_frontend_variant == 'MSVC' or config.compiler_simulate_id == 'MSVC':
config.available_features.add("msvc")
target_arch = getattr(config, 'target_arch', None)
if target_arch:
config.available_features.add(target_arch + '-target-arch')

View File

@ -21,6 +21,8 @@ config.has_libatomic = @LIBOMP_HAVE_LIBATOMIC@
config.is_standalone_build = @OPENMP_STANDALONE_BUILD@
config.has_omit_frame_pointer_flag = @OPENMP_TEST_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS@
config.target_arch = "@LIBOMP_ARCH@"
config.compiler_frontend_variant = "@CMAKE_C_COMPILER_FRONTEND_VARIANT@"
config.compiler_simulate_id = "@CMAKE_C_SIMULATE_ID@"
# Let the main config do the real work.
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")

View File

@ -1,3 +1,5 @@
// XFAIL: msvc
// Fails on windows due to issue #129023
// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
#ifndef HEADER

View File

@ -1,3 +1,5 @@
// XFAIL: msvc
// Fails on windows due to issue #129023
// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
#ifndef HEADER

View File

@ -1,3 +1,5 @@
// XFAIL: msvc
// Fails on windows due to issue #129023
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,3 +1,5 @@
// XFAIL: msvc
// Fails on windows due to issue #129023
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,3 +1,5 @@
// XFAIL: msvc
// Fails on windows due to issue #129023
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>