Skip to content

Commit

Permalink
Merge pull request #12523 from atrick/fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-ci committed Oct 20, 2017
2 parents 87b06aa + b73352a commit 30a8e15
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions test/stdlib/UnsafeRawBufferPointer.swift
Expand Up @@ -5,8 +5,15 @@
// General Collection behavior tests are in
// validation-test/stdlib/UnsafeBufferPointer.swift.

// rdar://35052802 unexpected assertions when test is run with optimize_size
// XFAIL: swift_test_mode_optimize_size && optimized_stdlib
// FIXME: The optimized-build behavior of UnsafeBufferPointer bounds/overflow
// checking cannot be tested. The standard library always compiles with debug
// checking enabled, so the behavior of the optimized test depends on whether
// the inlining heuristics decide to inline these methods. To fix this, we need
// a way to force @_inlineable UnsafeBufferPointer methods to be emitted inside
// the client code, and thereby subject the stdlib implementation to the test
// case's compile options.
//
// REQUIRES: swift_test_mode_optimize_none

import StdlibUnittest

Expand Down
11 changes: 9 additions & 2 deletions validation-test/stdlib/UnsafeBufferPointer.swift.gyb
@@ -1,8 +1,15 @@
// RUN: %target-run-simple-swiftgyb
// REQUIRES: executable_test

// rdar://35052802 unexpected assertions when test is run with optimize_size
// XFAIL: swift_test_mode_optimize_size && optimized_stdlib
// FIXME: The optimized-build behavior of UnsafeBufferPointer bounds/overflow
// checking cannot be tested. The standard library always compiles with debug
// checking enabled, so the behavior of the optimized test depends on whether
// the inlining heuristics decide to inline these methods. To fix this, we need
// a way to force @_inlineable UnsafeBufferPointer methods to be emitted inside
// the client code, and thereby subject the stdlib implementation to the test
// case's compile options.
//
// REQUIRES: swift_test_mode_optimize_none

import StdlibUnittest
import StdlibCollectionUnittest
Expand Down

0 comments on commit 30a8e15

Please sign in to comment.