File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 5
5
// General Collection behavior tests are in
6
6
// validation-test/stdlib/UnsafeBufferPointer.swift.
7
7
8
- // rdar://35052802 unexpected assertions when test is run with optimize_size
9
- // XFAIL: swift_test_mode_optimize_size && optimized_stdlib
8
+ // FIXME: The optimized-build behavior of UnsafeBufferPointer bounds/overflow
9
+ // checking cannot be tested. The standard library always compiles with debug
10
+ // checking enabled, so the behavior of the optimized test depends on whether
11
+ // the inlining heuristics decide to inline these methods. To fix this, we need
12
+ // a way to force @_inlineable UnsafeBufferPointer methods to be emitted inside
13
+ // the client code, and thereby subject the stdlib implementation to the test
14
+ // case's compile options.
15
+ //
16
+ // REQUIRES: swift_test_mode_optimize_none
10
17
11
18
import StdlibUnittest
12
19
Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swiftgyb
2
2
// REQUIRES: executable_test
3
3
4
- // rdar://35052802 unexpected assertions when test is run with optimize_size
5
- // XFAIL: swift_test_mode_optimize_size && optimized_stdlib
4
+ // FIXME: The optimized-build behavior of UnsafeBufferPointer bounds/overflow
5
+ // checking cannot be tested. The standard library always compiles with debug
6
+ // checking enabled, so the behavior of the optimized test depends on whether
7
+ // the inlining heuristics decide to inline these methods. To fix this, we need
8
+ // a way to force @_inlineable UnsafeBufferPointer methods to be emitted inside
9
+ // the client code, and thereby subject the stdlib implementation to the test
10
+ // case's compile options.
11
+ //
12
+ // REQUIRES: swift_test_mode_optimize_none
6
13
7
14
import StdlibUnittest
8
15
import StdlibCollectionUnittest
You can’t perform that action at this time.
0 commit comments