Skip to content

Commit 5eb727b

Browse files
authored
Merge pull request #83908 from etcwilde/ewilde/freebsd-disable-known-failures
FreeBSD: Disable known/in-progress test failures
2 parents f398ec5 + 9036dbc commit 5eb727b

File tree

11 files changed

+65
-0
lines changed

11 files changed

+65
-0
lines changed

test/Interop/Cxx/stdlib/use-std-map.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
//
1414
// REQUIRES: OS=macosx || OS=linux-gnu || OS=freebsd
1515

16+
// Undefined hidden symbol to C++ voidify in libcxx
17+
// rdar://121551667
18+
// XFAIL: OS=freebsd
19+
1620
import StdlibUnittest
1721
#if !BRIDGING_HEADER
1822
import StdMap

test/Interop/Cxx/stdlib/use-std-optional.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
//
66
// REQUIRES: executable_test
77

8+
// Undefined hidden symbol to C++ voidify in libcxx
9+
// rdar://121551667
10+
// XFAIL: OS=freebsd
11+
812
import StdlibUnittest
913
import StdOptional
1014
import CxxStdlib

test/Reflection/capture_descriptors.sil

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
// RUN: %target-build-swift %s -emit-module -emit-library -module-name capture_descriptors -o %t/capture_descriptors%{target-shared-library-suffix} -L%t/../../.. -lBlocksRuntime
1010
// RUN: %target-swift-reflection-dump %t/capture_descriptors%{target-shared-library-suffix} | %FileCheck %s
1111

12+
// lld on FreeBSD relocates some of the metadata sections resulting in invalid
13+
// offsets in section headers, breaking the Swift reflection data ELF parser
14+
// resulting in missing metadata.
15+
// rdar://159139154
16+
// XFAIL: OS=freebsd
17+
1218
sil_stage canonical
1319

1420
import Builtin

test/Reflection/typeref_decoding_imported.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
// UNSUPPORTED: OS=linux-android, OS=linux-androideabi
2525

26+
// lld on FreeBSD relocates some of the metadata sections resulting in invalid
27+
// offsets in section headers, breaking the Swift reflection data ELF parser
28+
// resulting in missing metadata.
29+
// rdar://159139154
30+
// XFAIL: OS=freebsd
31+
2632
// CHECK-32: FIELDS:
2733
// CHECK-32: =======
2834
// CHECK-32: TypesToReflect.HasCTypes

test/Sanitizers/tsan/async_taskgroup_next.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
// REQUIRES: tsan_runtime
77
// UNSUPPORTED: use_os_stdlib
88

9+
// Bug in TSan on FreeBSD
10+
// Thread destruction interceptor marks the thread ignored and then checks that
11+
// the thread isn't being ignored.
12+
// rdar://158450231
13+
// TSan is also occasionally detecting race conditions in the concurrency
14+
// runtime on FreeBSD.
15+
// rdar://158355890
16+
// XFAIL: OS=freebsd
17+
918
var scratchBuffer: UnsafeMutableBufferPointer<Int> = .allocate(capacity: 1000)
1019

1120
@available(SwiftStdlib 5.1, *)

test/Sanitizers/tsan/basic_future.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
// REQUIRES: tsan_runtime
77
// UNSUPPORTED: use_os_stdlib
88

9+
// Bug in TSan on FreeBSD
10+
// Thread destruction interceptor marks the thread ignored and then checks that
11+
// the thread isn't being ignored.
12+
// rdar://158450231
13+
// XFAIL: OS=freebsd
14+
915
import Dispatch
1016

1117
#if canImport(Darwin)

test/Sanitizers/tsan/mainactor.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
// UNSUPPORTED: use_os_stdlib
88
// UNSUPPORTED: threading_none
99

10+
// Bug in TSan on FreeBSD
11+
// Thread destruction interceptor marks the thread ignored and then checks that
12+
// the thread isn't being ignored.
13+
// rdar://158450231
14+
// XFAIL: OS=freebsd
15+
1016
import Dispatch
1117

1218
/// @returns true iff the expected answer is actually the case, i.e., correct.

test/Sanitizers/tsan/norace-task-group-cancellation.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
// UNSUPPORTED: back_deployment_runtime
88
// UNSUPPORTED: use_os_stdlib
99

10+
// Bug in TSan on FreeBSD
11+
// Thread destruction interceptor marks the thread ignored and then checks that
12+
// the thread isn't being ignored.
13+
// rdar://158450231
14+
// XFAIL: OS=freebsd
15+
1016
@main
1117
public struct TSANDataRaceOnCancel {
1218
public static func main() async throws {

test/Sanitizers/tsan/once.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
// on some platforms TSan wasn't seeing the synchronization, so would report
1818
// a false positive.
1919

20+
// TSan is detecting race conditions in the concurrency runtime.
21+
// This might be an issue in how it is hooked into the underlying threading
22+
// model on FreeBSD.
23+
// rdar://158355890
24+
// XFAIL: OS=freebsd
25+
2026
import Dispatch
2127

2228
var count = 0

test/Sanitizers/tsan/tsan.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
// don't support TSan.
1515
// UNSUPPORTED: remote_run
1616

17+
// TSan is detecting race conditions in the concurrency runtime.
18+
// This might be an issue in how it is hooked into the underlying threading
19+
// model on FreeBSD.
20+
// rdar://158355890
21+
// XFAIL: OS=freebsd
22+
1723
#if canImport(Darwin)
1824
import Darwin
1925
#elseif canImport(Glibc)

0 commit comments

Comments
 (0)