diff --git a/test/ASTGen/exprs.swift b/test/ASTGen/exprs.swift index 2fdb4cc22850b..611b224f391eb 100644 --- a/test/ASTGen/exprs.swift +++ b/test/ASTGen/exprs.swift @@ -11,6 +11,7 @@ // RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple -enable-experimental-feature OldOwnershipOperatorSpellings -enable-experimental-feature ParserASTGen) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_swift_parser // REQUIRES: swift_feature_ParserASTGen // REQUIRES: swift_feature_OldOwnershipOperatorSpellings diff --git a/test/AutoDiff/IRGen/loadable_by_address_cross_module.swift b/test/AutoDiff/IRGen/loadable_by_address_cross_module.swift index 1822ec050ec6c..28a9ada4d13bb 100644 --- a/test/AutoDiff/IRGen/loadable_by_address_cross_module.swift +++ b/test/AutoDiff/IRGen/loadable_by_address_cross_module.swift @@ -35,6 +35,7 @@ // RUN: %target-run %t/a.out %t/%target-library-name(external) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import _Differentiation import external diff --git a/test/AutoDiff/stdlib/anydifferentiable.swift b/test/AutoDiff/stdlib/anydifferentiable.swift index 7812d457d4a0f..8859ed05c2862 100644 --- a/test/AutoDiff/stdlib/anydifferentiable.swift +++ b/test/AutoDiff/stdlib/anydifferentiable.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import _Differentiation import StdlibUnittest diff --git a/test/AutoDiff/stdlib/derivative_customization.swift b/test/AutoDiff/stdlib/derivative_customization.swift index aa10e2e95ea71..f78ac5ef52ea9 100644 --- a/test/AutoDiff/stdlib/derivative_customization.swift +++ b/test/AutoDiff/stdlib/derivative_customization.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import DifferentiationUnittest import StdlibUnittest diff --git a/test/AutoDiff/validation-test/address_only_tangentvector.swift b/test/AutoDiff/validation-test/address_only_tangentvector.swift index e7c6ad1f60cf6..3db28c8eec4cd 100644 --- a/test/AutoDiff/validation-test/address_only_tangentvector.swift +++ b/test/AutoDiff/validation-test/address_only_tangentvector.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Would fail due to unavailability of swift_autoDiffCreateLinearMapContext. diff --git a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_protocol.swift b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_protocol.swift index a5c4de74ba7c5..792b469015548 100644 --- a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_protocol.swift +++ b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_protocol.swift @@ -1,4 +1,5 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %empty-directory(%t) // RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleProtocol1)) %S/Inputs/MultiModuleProtocol/file1.swift \ diff --git a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct.swift b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct.swift index f96054289818a..7b92fe9cca9eb 100644 --- a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct.swift +++ b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct.swift @@ -1,4 +1,5 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %empty-directory(%t) // RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct1)) %S/Inputs/MultiModuleStruct/file1.swift \ diff --git a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_jvp.swift b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_jvp.swift index b75f11a9eec13..6329a074b2c57 100644 --- a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_jvp.swift +++ b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_jvp.swift @@ -1,4 +1,5 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %empty-directory(%t) // RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct1)) %S/Inputs/MultiModuleStruct/file1.swift \ diff --git a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_vjp.swift b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_vjp.swift index a76ab04308b52..e30a908e92197 100644 --- a/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_vjp.swift +++ b/test/AutoDiff/validation-test/always_emit_into_client/multi_module_struct_no_vjp.swift @@ -1,4 +1,5 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %empty-directory(%t) // RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct1)) %S/Inputs/MultiModuleStruct/file1.swift \ diff --git a/test/AutoDiff/validation-test/array.swift b/test/AutoDiff/validation-test/array.swift index 9e0bf322c5558..d959de5c7534f 100644 --- a/test/AutoDiff/validation-test/array.swift +++ b/test/AutoDiff/validation-test/array.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Would fail due to unavailability of swift_autoDiffCreateLinearMapContext. diff --git a/test/AutoDiff/validation-test/class_differentiation.swift b/test/AutoDiff/validation-test/class_differentiation.swift index bc3f4b926eb4a..dda74dcf1d669 100644 --- a/test/AutoDiff/validation-test/class_differentiation.swift +++ b/test/AutoDiff/validation-test/class_differentiation.swift @@ -2,6 +2,7 @@ // NOTE: Verify whether forward-mode differentiation crashes. It currently does. // RUN: not --crash %target-swift-frontend -enable-experimental-forward-mode-differentiation -emit-sil %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import DifferentiationUnittest diff --git a/test/AutoDiff/validation-test/custom_derivatives.swift b/test/AutoDiff/validation-test/custom_derivatives.swift index 233c5819f40dd..55a60e72861e8 100644 --- a/test/AutoDiff/validation-test/custom_derivatives.swift +++ b/test/AutoDiff/validation-test/custom_derivatives.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest #if canImport(Darwin) diff --git a/test/AutoDiff/validation-test/forward_mode_simple.swift b/test/AutoDiff/validation-test/forward_mode_simple.swift index 90e52c4e71650..db542c0fff14c 100644 --- a/test/AutoDiff/validation-test/forward_mode_simple.swift +++ b/test/AutoDiff/validation-test/forward_mode_simple.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-forward-mode-differentiation) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import DifferentiationUnittest diff --git a/test/AutoDiff/validation-test/inout_parameters.swift b/test/AutoDiff/validation-test/inout_parameters.swift index 95ede7ee938c6..bb83ce4f4c7b1 100644 --- a/test/AutoDiff/validation-test/inout_parameters.swift +++ b/test/AutoDiff/validation-test/inout_parameters.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Would fail due to unavailability of swift_autoDiffCreateLinearMapContext. diff --git a/test/AutoDiff/validation-test/issue-58353.swift b/test/AutoDiff/validation-test/issue-58353.swift index cb09bbf748656..b3cf2b4ac7175 100644 --- a/test/AutoDiff/validation-test/issue-58353.swift +++ b/test/AutoDiff/validation-test/issue-58353.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // https://github.com/apple/swift/issues/58353 diff --git a/test/AutoDiff/validation-test/property_wrappers.swift b/test/AutoDiff/validation-test/property_wrappers.swift index 4f102acc5d8c6..bbe4859eb1251 100644 --- a/test/AutoDiff/validation-test/property_wrappers.swift +++ b/test/AutoDiff/validation-test/property_wrappers.swift @@ -2,6 +2,7 @@ // TODO(TF-1254): Support and test forward-mode differentiation. // TODO(TF-1254): %target-run-simple-swift(-Xfrontend -enable-experimental-forward-mode-differentiation) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import DifferentiationUnittest diff --git a/test/AutoDiff/validation-test/reabstraction.swift b/test/AutoDiff/validation-test/reabstraction.swift index bf93f7471a34d..e296dcdd1bf5d 100644 --- a/test/AutoDiff/validation-test/reabstraction.swift +++ b/test/AutoDiff/validation-test/reabstraction.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import _Differentiation import StdlibUnittest diff --git a/test/AutoDiff/validation-test/storeborrow.swift b/test/AutoDiff/validation-test/storeborrow.swift index 1b1399792bece..005d5ad6b57ee 100644 --- a/test/AutoDiff/validation-test/storeborrow.swift +++ b/test/AutoDiff/validation-test/storeborrow.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import DifferentiationUnittest diff --git a/test/Backtracing/Crash.swift b/test/Backtracing/Crash.test similarity index 83% rename from test/Backtracing/Crash.swift rename to test/Backtracing/Crash.test index b91c19d48b9c6..44430fa36930a 100644 --- a/test/Backtracing/Crash.swift +++ b/test/Backtracing/Crash.test @@ -1,8 +1,8 @@ // RUN: %empty-directory(%t) -// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/Crash -// RUN: %target-build-swift %s -parse-as-library -Onone -o %t/CrashNoDebug -// RUN: %target-build-swift %s -parse-as-library -O -g -o %t/CrashOpt -// RUN: %target-build-swift %s -parse-as-library -O -o %t/CrashOptNoDebug +// RUN: %target-build-swift %S/Inputs/Crash.swift -parse-as-library -Onone -g -o %t/Crash +// RUN: %target-build-swift %S/Inputs/Crash.swift -parse-as-library -Onone -o %t/CrashNoDebug +// RUN: %target-build-swift %S/Inputs/Crash.swift -parse-as-library -O -g -o %t/CrashOpt +// RUN: %target-build-swift %S/Inputs/Crash.swift -parse-as-library -O -o %t/CrashOptNoDebug // RUN: %target-codesign %t/Crash // RUN: %target-codesign %t/CrashNoDebug // RUN: %target-codesign %t/CrashOpt @@ -17,48 +17,21 @@ // UNSUPPORTED: back_deployment_runtime // UNSUPPORTED: asan // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: backtracing // REQUIRES: OS=macosx || OS=linux-gnu -func level1() { - level2() -} - -func level2() { - level3() -} - -func level3() { - level4() -} - -func level4() { - level5() -} - -func level5() { - print("About to crash") - let ptr = UnsafeMutablePointer(bitPattern: 4)! - ptr.pointee = 42 -} - -@main -struct Crash { - static func main() { - level1() - } -} // CHECK: *** Program crashed: Bad pointer dereference at 0x{{0+}}4 *** // CHECK: Thread 0 {{(".*" )?}}crashed: -// CHECK: 0 0x{{[0-9a-f]+}} level5() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:42:15 -// CHECK-NEXT: 1 [ra] 0x{{[0-9a-f]+}} level4() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:36:3 -// CHECK-NEXT: 2 [ra] 0x{{[0-9a-f]+}} level3() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:32:3 -// CHECK-NEXT: 3 [ra] 0x{{[0-9a-f]+}} level2() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:28:3 -// CHECK-NEXT: 4 [ra] 0x{{[0-9a-f]+}} level1() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:24:3 -// CHECK-NEXT: 5 [ra] 0x{{[0-9a-f]+}} static Crash.main() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:48:5 +// CHECK: 0 0x{{[0-9a-f]+}} level5() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:19:15 +// CHECK-NEXT: 1 [ra] 0x{{[0-9a-f]+}} level4() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:13:3 +// CHECK-NEXT: 2 [ra] 0x{{[0-9a-f]+}} level3() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:9:3 +// CHECK-NEXT: 3 [ra] 0x{{[0-9a-f]+}} level2() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:5:3 +// CHECK-NEXT: 4 [ra] 0x{{[0-9a-f]+}} level1() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:1:3 +// CHECK-NEXT: 5 [ra] 0x{{[0-9a-f]+}} static Crash.main() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:25:5 // CHECK-NEXT: 6 [ra] [system] 0x{{[0-9a-f]+}} static Crash.$main() + {{[0-9]+}} in Crash at {{.*}}/ // CHECK-NEXT: 7 [ra] [system] 0x{{[0-9a-f]+}} main + {{[0-9]+}} in Crash at {{.*}}/Crash.swift @@ -72,7 +45,7 @@ struct Crash { // FRIENDLY: Thread 0 {{(".*" )?}}crashed: -// FRIENDLY: 0 level5() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:42:15 +// FRIENDLY: 0 level5() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:19:15 // FRIENDLY: 40| print("About to crash") // FRIENDLY-NEXT: 41| let ptr = UnsafeMutablePointer(bitPattern: 4)! @@ -81,7 +54,7 @@ struct Crash { // FRIENDLY-NEXT: 43| } // FRIENDLY-NEXT: 44| -// FRIENDLY: 1 level4() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:36:3 +// FRIENDLY: 1 level4() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:13:3 // FRIENDLY: 34| // FRIENDLY-NEXT: 35| func level4() { @@ -90,7 +63,7 @@ struct Crash { // FRIENDLY-NEXT: 37| } // FRIENDLY-NEXT: 38| -// FRIENDLY: 2 level3() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:32:3 +// FRIENDLY: 2 level3() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:9:3 // FRIENDLY: 30| // FRIENDLY-NEXT: 31| func level3() { @@ -99,7 +72,7 @@ struct Crash { // FRIENDLY-NEXT: 33| } // FRIENDLY-NEXT: 34| -// FRIENDLY: 3 level2() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:28:3 +// FRIENDLY: 3 level2() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:5:3 // FRIENDLY: 26| // FRIENDLY-NEXT: 27| func level2() { @@ -108,7 +81,7 @@ struct Crash { // FRIENDLY-NEXT: 29| } // FRIENDLY-NEXT: 30| -// FRIENDLY: 4 level1() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:24:3 +// FRIENDLY: 4 level1() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:1:3 // FRIENDLY: 22| // FRIENDLY-NEXT: 23| func level1() { @@ -117,7 +90,7 @@ struct Crash { // FRIENDLY-NEXT: 25| } // FRIENDLY-NEXT: 26| -// FRIENDLY: 5 static Crash.main() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:48:5 +// FRIENDLY: 5 static Crash.main() + {{[0-9]+}} in Crash at {{.*}}/Crash.swift:25:5 // FRIENDLY: 46| struct Crash { // FRIENDLY-NEXT: 47| static func main() { @@ -149,12 +122,12 @@ struct Crash { // OPTIMIZED: Thread 0 {{(".*" )?}}crashed: -// OPTIMIZED: 0 [inlined] 0x{{[0-9a-f]+}} level5() in CrashOpt at {{.*}}/Crash.swift:42:15 -// OPTIMIZED-NEXT: 1 [inlined] 0x{{[0-9a-f]+}} level4() in CrashOpt at {{.*}}/Crash.swift:36:3 -// OPTIMIZED-NEXT: 2 [inlined] 0x{{[0-9a-f]+}} level3() in CrashOpt at {{.*}}/Crash.swift:32:3 -// OPTIMIZED-NEXT: 3 [inlined] 0x{{[0-9a-f]+}} level2() in CrashOpt at {{.*}}/Crash.swift:28:3 -// OPTIMIZED-NEXT: 4 [inlined] 0x{{[0-9a-f]+}} level1() in CrashOpt at {{.*}}/Crash.swift:24:3 -// OPTIMIZED-NEXT: 5 [inlined] 0x{{[0-9a-f]+}} static Crash.main() in CrashOpt at {{.*}}/Crash.swift:48:5 +// OPTIMIZED: 0 [inlined] 0x{{[0-9a-f]+}} level5() in CrashOpt at {{.*}}/Crash.swift:19:15 +// OPTIMIZED-NEXT: 1 [inlined] 0x{{[0-9a-f]+}} level4() in CrashOpt at {{.*}}/Crash.swift:13:3 +// OPTIMIZED-NEXT: 2 [inlined] 0x{{[0-9a-f]+}} level3() in CrashOpt at {{.*}}/Crash.swift:9:3 +// OPTIMIZED-NEXT: 3 [inlined] 0x{{[0-9a-f]+}} level2() in CrashOpt at {{.*}}/Crash.swift:5:3 +// OPTIMIZED-NEXT: 4 [inlined] 0x{{[0-9a-f]+}} level1() in CrashOpt at {{.*}}/Crash.swift:1:3 +// OPTIMIZED-NEXT: 5 [inlined] 0x{{[0-9a-f]+}} static Crash.main() in CrashOpt at {{.*}}/Crash.swift:25:5 // OPTIMIZED: {{6|7}} [system] 0x{{[0-9a-f]+}} main + {{[0-9]+}} in CrashOpt at {{.*}} // OPTIMIZED: Registers: diff --git a/test/Backtracing/Inputs/Crash.swift b/test/Backtracing/Inputs/Crash.swift new file mode 100644 index 0000000000000..9fec6c3fb0158 --- /dev/null +++ b/test/Backtracing/Inputs/Crash.swift @@ -0,0 +1,28 @@ +func level1() { + level2() +} + +func level2() { + level3() +} + +func level3() { + level4() +} + +func level4() { + level5() +} + +func level5() { + print("About to crash") + let ptr = UnsafeMutablePointer(bitPattern: 4)! + ptr.pointee = 42 +} + +@main +struct Crash { + static func main() { + level1() + } +} \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 996b8c8dbc698..25c5bdc8bf234 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -348,6 +348,7 @@ set(profdata_merge_worker set(TEST_MODES optimize_none optimize optimize_unchecked optimize_size + optimize_none_with_opaque_values optimize_none_with_implicit_dynamic optimize_with_implicit_dynamic only_executable only_non_executable diff --git a/test/Casting/Casts.swift b/test/Casting/Casts.swift index 7d3af94d421f9..dbe6d16926603 100644 --- a/test/Casting/Casts.swift +++ b/test/Casting/Casts.swift @@ -24,6 +24,7 @@ // RUN: %target-run %t/a.swift5.O.out // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Casting/ParameterizedExistentials.swift b/test/Casting/ParameterizedExistentials.swift index c6fd92d30c49f..cca01000bab45 100644 --- a/test/Casting/ParameterizedExistentials.swift +++ b/test/Casting/ParameterizedExistentials.swift @@ -26,6 +26,7 @@ // RUN: %target-run %t/a.swift5.O.out // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This test requires the new existential shape metadata accessors which are // not available in on-device runtimes, or in the back-deployment runtime. // UNSUPPORTED: use_os_stdlib diff --git a/test/ClangImporter/enum-error-execute.swift b/test/ClangImporter/enum-error-execute.swift index ad0739b706f01..0c74e38ee45a3 100644 --- a/test/ClangImporter/enum-error-execute.swift +++ b/test/ClangImporter/enum-error-execute.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx import Foundation diff --git a/test/Concurrency/Runtime/actor_isIsolatingCurrentContext.swift b/test/Concurrency/Runtime/actor_isIsolatingCurrentContext.swift index d5667edeb4c97..06b8c2f5f08ff 100644 --- a/test/Concurrency/Runtime/actor_isIsolatingCurrentContext.swift +++ b/test/Concurrency/Runtime/actor_isIsolatingCurrentContext.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime diff --git a/test/Concurrency/Runtime/actor_keypaths.swift b/test/Concurrency/Runtime/actor_keypaths.swift index dcf601158760c..d0601f63db825 100644 --- a/test/Concurrency/Runtime/actor_keypaths.swift +++ b/test/Concurrency/Runtime/actor_keypaths.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.1-abi-triple) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime // UNSUPPORTED: back_deployment_runtime diff --git a/test/Concurrency/Runtime/async_parameter_pack.swift b/test/Concurrency/Runtime/async_parameter_pack.swift index bc6a82776178a..194ce8818cc38 100644 --- a/test/Concurrency/Runtime/async_parameter_pack.swift +++ b/test/Concurrency/Runtime/async_parameter_pack.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.9-abi-triple) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency protocol P { diff --git a/test/Concurrency/Runtime/async_sequence.swift b/test/Concurrency/Runtime/async_sequence.swift index f358cb32956b8..577040c02b94a 100644 --- a/test/Concurrency/Runtime/async_sequence.swift +++ b/test/Concurrency/Runtime/async_sequence.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.1-abi-triple -parse-as-library) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime diff --git a/test/Concurrency/Runtime/async_stream.swift b/test/Concurrency/Runtime/async_stream.swift index 553d4d736bbd8..424725d88c940 100644 --- a/test/Concurrency/Runtime/async_stream.swift +++ b/test/Concurrency/Runtime/async_stream.swift @@ -3,6 +3,7 @@ // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency_runtime // rdar://78109470 diff --git a/test/Concurrency/Runtime/async_task_executor_default_actor_funcs.swift b/test/Concurrency/Runtime/async_task_executor_default_actor_funcs.swift index cb75f8ecb105b..4902d934148de 100644 --- a/test/Concurrency/Runtime/async_task_executor_default_actor_funcs.swift +++ b/test/Concurrency/Runtime/async_task_executor_default_actor_funcs.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library ) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch diff --git a/test/Concurrency/Runtime/async_task_executor_structured_concurrency.swift b/test/Concurrency/Runtime/async_task_executor_structured_concurrency.swift index 3d2805bf8274b..c049b826b6b26 100644 --- a/test/Concurrency/Runtime/async_task_executor_structured_concurrency.swift +++ b/test/Concurrency/Runtime/async_task_executor_structured_concurrency.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library ) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch diff --git a/test/Concurrency/Runtime/async_task_executor_withExecutor.swift b/test/Concurrency/Runtime/async_task_executor_withExecutor.swift index f714c2a9e2300..5a4cef489111b 100644 --- a/test/Concurrency/Runtime/async_task_executor_withExecutor.swift +++ b/test/Concurrency/Runtime/async_task_executor_withExecutor.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library ) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch diff --git a/test/Concurrency/Runtime/async_taskgroup_cancellation_race.swift b/test/Concurrency/Runtime/async_taskgroup_cancellation_race.swift index 96268d37c0914..00b499b486e61 100644 --- a/test/Concurrency/Runtime/async_taskgroup_cancellation_race.swift +++ b/test/Concurrency/Runtime/async_taskgroup_cancellation_race.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch // REQUIRES: concurrency_runtime diff --git a/test/Concurrency/Runtime/async_taskgroup_discarding_neverConsumingTasks.swift b/test/Concurrency/Runtime/async_taskgroup_discarding_neverConsumingTasks.swift index f9f15389482b7..0c33a5ddc27ce 100644 --- a/test/Concurrency/Runtime/async_taskgroup_discarding_neverConsumingTasks.swift +++ b/test/Concurrency/Runtime/async_taskgroup_discarding_neverConsumingTasks.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s --dump-input=always // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime diff --git a/test/Concurrency/Runtime/cancellation_handler_only_once.swift b/test/Concurrency/Runtime/cancellation_handler_only_once.swift index b188b1f0c02b0..f175984dbb2a1 100644 --- a/test/Concurrency/Runtime/cancellation_handler_only_once.swift +++ b/test/Concurrency/Runtime/cancellation_handler_only_once.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -target %target-swift-5.1-abi-triple %import-libdispatch) | %FileCheck %s // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // rdar://76038845 // REQUIRES: concurrency_runtime diff --git a/test/Concurrency/Runtime/class_resilience.swift b/test/Concurrency/Runtime/class_resilience.swift index 42daeade333fc..f26e612acfb3d 100644 --- a/test/Concurrency/Runtime/class_resilience.swift +++ b/test/Concurrency/Runtime/class_resilience.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/main %t/%target-library-name(resilient_class) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // UNSUPPORTED: freestanding diff --git a/test/Concurrency/Runtime/custom_main_executor.swift b/test/Concurrency/Runtime/custom_main_executor.swift index 08e9b8f7ce64e..fee52cb1b3182 100644 --- a/test/Concurrency/Runtime/custom_main_executor.swift +++ b/test/Concurrency/Runtime/custom_main_executor.swift @@ -2,6 +2,7 @@ // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding diff --git a/test/Concurrency/Runtime/custom_task_executor_fast_path.swift b/test/Concurrency/Runtime/custom_task_executor_fast_path.swift index 8e13b8f95e42b..3bcef2584601b 100644 --- a/test/Concurrency/Runtime/custom_task_executor_fast_path.swift +++ b/test/Concurrency/Runtime/custom_task_executor_fast_path.swift @@ -2,6 +2,7 @@ // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding diff --git a/test/Concurrency/Runtime/exclusivity_custom_executors.swift b/test/Concurrency/Runtime/exclusivity_custom_executors.swift index 1d452da1edfbb..6d0a639d51155 100644 --- a/test/Concurrency/Runtime/exclusivity_custom_executors.swift +++ b/test/Concurrency/Runtime/exclusivity_custom_executors.swift @@ -2,6 +2,7 @@ // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding diff --git a/test/Concurrency/Runtime/isolated_conformance.swift b/test/Concurrency/Runtime/isolated_conformance.swift index c3c4e1e968f78..bc27a00afbbb7 100644 --- a/test/Concurrency/Runtime/isolated_conformance.swift +++ b/test/Concurrency/Runtime/isolated_conformance.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime // UNSUPPORTED: back_deployment_runtime diff --git a/test/Concurrency/async_task_base_priority.swift b/test/Concurrency/async_task_base_priority.swift index 6e5e722a915a1..dc05e679299b7 100644 --- a/test/Concurrency/async_task_base_priority.swift +++ b/test/Concurrency/async_task_base_priority.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( %import-libdispatch -parse-as-library ) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch diff --git a/test/Concurrency/async_task_escalate_priority.swift b/test/Concurrency/async_task_escalate_priority.swift index 4eae25c027780..aeb1bbfd3f55f 100644 --- a/test/Concurrency/async_task_escalate_priority.swift +++ b/test/Concurrency/async_task_escalate_priority.swift @@ -6,6 +6,7 @@ // REQUIRES: VENDOR=apple // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch diff --git a/test/Concurrency/async_task_priority.swift b/test/Concurrency/async_task_priority.swift index 7d3ed8765bdec..aa830e5fa0861 100644 --- a/test/Concurrency/async_task_priority.swift +++ b/test/Concurrency/async_task_priority.swift @@ -6,6 +6,7 @@ // REQUIRES: VENDOR=apple // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: libdispatch diff --git a/test/Concurrency/throwing.swift b/test/Concurrency/throwing.swift index 3ca6a722b3de1..8e4f8de56e0fb 100644 --- a/test/Concurrency/throwing.swift +++ b/test/Concurrency/throwing.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.1-abi-triple -parse-as-library) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // UNSUPPORTED: freestanding diff --git a/test/Concurrency/voucher_propagation.swift b/test/Concurrency/voucher_propagation.swift index a8ff4b93bfc84..0260330ba4846 100644 --- a/test/Concurrency/voucher_propagation.swift +++ b/test/Concurrency/voucher_propagation.swift @@ -4,6 +4,7 @@ // RUN: MallocStackLogging=1 %target-run %t/voucher_propagation // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // Use objc_interop as a proxy for voucher support in the OS. diff --git a/test/Constraints/result_builder.swift b/test/Constraints/result_builder.swift index b7a63a80a29b5..5bed3da286e67 100644 --- a/test/Constraints/result_builder.swift +++ b/test/Constraints/result_builder.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values enum Either { case first(T) diff --git a/test/Constraints/result_builder_ast_transform.swift b/test/Constraints/result_builder_ast_transform.swift index a5277a1671eab..b1ea3d597ca2c 100644 --- a/test/Constraints/result_builder_ast_transform.swift +++ b/test/Constraints/result_builder_ast_transform.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/main | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @propertyWrapper struct Wrapper { diff --git a/test/Distributed/Runtime/distributed_actor_assume_executor.swift b/test/Distributed/Runtime/distributed_actor_assume_executor.swift index e70a9b2aa5dee..2cd4c64fdbe2c 100644 --- a/test/Distributed/Runtime/distributed_actor_assume_executor.swift +++ b/test/Distributed/Runtime/distributed_actor_assume_executor.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: concurrency_runtime diff --git a/test/Distributed/Runtime/distributed_actor_cross_module_final_class_adhoc_requirement_not_optimized_away.swift b/test/Distributed/Runtime/distributed_actor_cross_module_final_class_adhoc_requirement_not_optimized_away.swift index c90bfeefb67a5..fb58abec44901 100644 --- a/test/Distributed/Runtime/distributed_actor_cross_module_final_class_adhoc_requirement_not_optimized_away.swift +++ b/test/Distributed/Runtime/distributed_actor_cross_module_final_class_adhoc_requirement_not_optimized_away.swift @@ -5,6 +5,7 @@ // REQUIRES: OS=macosx && (CPU=x86_64 || CPU=arm64) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_custom_executor_availability.swift b/test/Distributed/Runtime/distributed_actor_custom_executor_availability.swift index d21dc314c7db0..ce9f87b02fced 100644 --- a/test/Distributed/Runtime/distributed_actor_custom_executor_availability.swift +++ b/test/Distributed/Runtime/distributed_actor_custom_executor_availability.swift @@ -8,6 +8,7 @@ // REQUIRES: OS=macosx || OS=ios || OS=watchos || OS=tvos // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: concurrency_runtime diff --git a/test/Distributed/Runtime/distributed_actor_custom_executor_availability_swift59.swift b/test/Distributed/Runtime/distributed_actor_custom_executor_availability_swift59.swift index 3893f1c321df8..57937a8466b28 100644 --- a/test/Distributed/Runtime/distributed_actor_custom_executor_availability_swift59.swift +++ b/test/Distributed/Runtime/distributed_actor_custom_executor_availability_swift59.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: concurrency_runtime diff --git a/test/Distributed/Runtime/distributed_actor_custom_executor_basic.swift b/test/Distributed/Runtime/distributed_actor_custom_executor_basic.swift index 3f54da1dcff31..17748e7a8a1f6 100644 --- a/test/Distributed/Runtime/distributed_actor_custom_executor_basic.swift +++ b/test/Distributed/Runtime/distributed_actor_custom_executor_basic.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_custom_executor_from_id.swift b/test/Distributed/Runtime/distributed_actor_custom_executor_from_id.swift index 5378fad15f1a4..c43f9c2918859 100644 --- a/test/Distributed/Runtime/distributed_actor_custom_executor_from_id.swift +++ b/test/Distributed/Runtime/distributed_actor_custom_executor_from_id.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_decode.swift b/test/Distributed/Runtime/distributed_actor_decode.swift index 443a3f4094ea7..1f4f378ded8c7 100644 --- a/test/Distributed/Runtime/distributed_actor_decode.swift +++ b/test/Distributed/Runtime/distributed_actor_decode.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.7-abi-triple -parse-as-library) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_deinit.swift b/test/Distributed/Runtime/distributed_actor_deinit.swift index 935ed891198eb..9ba58be87b461 100644 --- a/test/Distributed/Runtime/distributed_actor_deinit.swift +++ b/test/Distributed/Runtime/distributed_actor_deinit.swift @@ -5,6 +5,7 @@ // REQUIRES: libdispatch // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_encode_roundtrip.swift b/test/Distributed/Runtime/distributed_actor_encode_roundtrip.swift index e3c5b2d1903a9..b53658ff5b1b4 100644 --- a/test/Distributed/Runtime/distributed_actor_encode_roundtrip.swift +++ b/test/Distributed/Runtime/distributed_actor_encode_roundtrip.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_execute_doesnt_leak_arguments.swift b/test/Distributed/Runtime/distributed_actor_execute_doesnt_leak_arguments.swift index 71ed2ea6fcc47..09d52bf20e2cb 100644 --- a/test/Distributed/Runtime/distributed_actor_execute_doesnt_leak_arguments.swift +++ b/test/Distributed/Runtime/distributed_actor_execute_doesnt_leak_arguments.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_executor_asserts.swift b/test/Distributed/Runtime/distributed_actor_executor_asserts.swift index 122e475c009d7..1f6ba6e68e903 100644 --- a/test/Distributed/Runtime/distributed_actor_executor_asserts.swift +++ b/test/Distributed/Runtime/distributed_actor_executor_asserts.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_executor_default.swift b/test/Distributed/Runtime/distributed_actor_executor_default.swift index 116655fbc4b84..4e36125a4a53b 100644 --- a/test/Distributed/Runtime/distributed_actor_executor_default.swift +++ b/test/Distributed/Runtime/distributed_actor_executor_default.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: concurrency_runtime diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_decoded_args_deinit.swift b/test/Distributed/Runtime/distributed_actor_func_calls_decoded_args_deinit.swift index 1611b73828499..91dce64692925 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_decoded_args_deinit.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_decoded_args_deinit.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_array_param.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_array_param.swift index a83f45884b1d1..6cac14dfec87b 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_array_param.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_array_param.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s --dump-input=always // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_bad_targets.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_bad_targets.swift index b377971816e8f..57e71c3b37ce8 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_bad_targets.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_bad_targets.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_computedProperty.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_computedProperty.swift index cc0786362d9fc..e6e0a7bcb099d 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_computedProperty.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_computedProperty.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_da_in_generic_type.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_da_in_generic_type.swift index fbf7d6b80b1ad..89528532b89b8 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_da_in_generic_type.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_da_in_generic_type.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.swift index 2d0c8cd2e7e6a..43ceb86e0f281 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.swift index 432505053101b..87d69289664fe 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension.swift index 02619acf496ed..9b2494c97981c 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension_concrete.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension_concrete.swift index 35a1626387f9d..6527f8b55ff15 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension_concrete.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_extension_concrete.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.swift index 7ad40147af321..4f4616bc07bf3 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.swift index 497a2d0fc8c10..2deeb3d0eedc8 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_not_codable.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_not_codable.swift index 6d3c3b20afaa8..6af4e8e4cddb6 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_not_codable.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_not_codable.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_property.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_property.swift index 06165876d8f5e..682f347d083da 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_property.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_property.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_remoteChanged_asyncness.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_remoteChanged_asyncness.swift index d98b273179854..003ebbcb03816 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_remoteChanged_asyncness.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_remoteChanged_asyncness.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.swift index 59b96cdd7b135..2440aed8f39d8 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_takeThrowReturn.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_takeThrowReturn.swift index 7ae59fd56d921..9deee175c0244 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_takeThrowReturn.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_takeThrowReturn.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.swift index 930cf8c186399..b658cf1c58cd8 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic.swift index 45c0ac924fccd..828be6a69f475 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic_and_inner.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic_and_inner.swift index 802c100388a17..ff61cfbb55f14 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic_and_inner.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_through_generic_and_inner.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_throw.swift b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_throw.swift index 1d9382a6ca61a..ba8f5287c24cc 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_throw.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_throw.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_func_calls_without_touching_returnType_metadata_first.swift b/test/Distributed/Runtime/distributed_actor_func_calls_without_touching_returnType_metadata_first.swift index 8afd936c8c4ef..37b7ddaff3cd4 100644 --- a/test/Distributed/Runtime/distributed_actor_func_calls_without_touching_returnType_metadata_first.swift +++ b/test/Distributed/Runtime/distributed_actor_func_calls_without_touching_returnType_metadata_first.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out RETURN_TYPE // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: libdispatch diff --git a/test/Distributed/Runtime/distributed_actor_generic_codable_da_conformance.swift b/test/Distributed/Runtime/distributed_actor_generic_codable_da_conformance.swift index fb654dfa0793e..6b52847557a8c 100644 --- a/test/Distributed/Runtime/distributed_actor_generic_codable_da_conformance.swift +++ b/test/Distributed/Runtime/distributed_actor_generic_codable_da_conformance.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_generic_constraint_issue_115497090.swift b/test/Distributed/Runtime/distributed_actor_generic_constraint_issue_115497090.swift index 812fa0f1d6e7b..24456f492266a 100644 --- a/test/Distributed/Runtime/distributed_actor_generic_constraint_issue_115497090.swift +++ b/test/Distributed/Runtime/distributed_actor_generic_constraint_issue_115497090.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_hop_to.swift b/test/Distributed/Runtime/distributed_actor_hop_to.swift index 9343513e8d49c..f576fe151ae6b 100644 --- a/test/Distributed/Runtime/distributed_actor_hop_to.swift +++ b/test/Distributed/Runtime/distributed_actor_hop_to.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_in_other_module.swift b/test/Distributed/Runtime/distributed_actor_in_other_module.swift index 6df9f143937ab..615a6dce5b27c 100644 --- a/test/Distributed/Runtime/distributed_actor_in_other_module.swift +++ b/test/Distributed/Runtime/distributed_actor_in_other_module.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_isRemote.swift b/test/Distributed/Runtime/distributed_actor_isRemote.swift index 4dfaa28fbda58..6e2935110e72a 100644 --- a/test/Distributed/Runtime/distributed_actor_isRemote.swift +++ b/test/Distributed/Runtime/distributed_actor_isRemote.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_isolated_existential.swift b/test/Distributed/Runtime/distributed_actor_isolated_existential.swift index acacd50439016..9aaa9b4b892e0 100644 --- a/test/Distributed/Runtime/distributed_actor_isolated_existential.swift +++ b/test/Distributed/Runtime/distributed_actor_isolated_existential.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_isolation_passing.swift b/test/Distributed/Runtime/distributed_actor_isolation_passing.swift index ee1eaf5c228f0..ff6712ac49474 100644 --- a/test/Distributed/Runtime/distributed_actor_isolation_passing.swift +++ b/test/Distributed/Runtime/distributed_actor_isolation_passing.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: concurrency_runtime diff --git a/test/Distributed/Runtime/distributed_actor_local.swift b/test/Distributed/Runtime/distributed_actor_local.swift index a173ef47b7d48..8f00198632792 100644 --- a/test/Distributed/Runtime/distributed_actor_local.swift +++ b/test/Distributed/Runtime/distributed_actor_local.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_localSystem.swift b/test/Distributed/Runtime/distributed_actor_localSystem.swift index 1fc9218180ba6..006c131ace585 100644 --- a/test/Distributed/Runtime/distributed_actor_localSystem.swift +++ b/test/Distributed/Runtime/distributed_actor_localSystem.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol.swift b/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol.swift index 28ad023e489ba..192cb7078a9a1 100644 --- a/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol.swift +++ b/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/evo.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol_variable.swift b/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol_variable.swift index c10fd6cc5ebd4..83bde09328229 100644 --- a/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol_variable.swift +++ b/test/Distributed/Runtime/distributed_actor_localSystem_distributedProtocol_variable.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/evo.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_localSystem_generic_system.swift b/test/Distributed/Runtime/distributed_actor_localSystem_generic_system.swift index 54b2c3eada3cd..0ba33edc45d6b 100644 --- a/test/Distributed/Runtime/distributed_actor_localSystem_generic_system.swift +++ b/test/Distributed/Runtime/distributed_actor_localSystem_generic_system.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/evo.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_localSystem_manual_conformance.swift b/test/Distributed/Runtime/distributed_actor_localSystem_manual_conformance.swift index 93f262a1938bc..00bb054870a04 100644 --- a/test/Distributed/Runtime/distributed_actor_localSystem_manual_conformance.swift +++ b/test/Distributed/Runtime/distributed_actor_localSystem_manual_conformance.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/evo.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_local_only_witness_and_call.swift b/test/Distributed/Runtime/distributed_actor_local_only_witness_and_call.swift index e59206c2f22c2..bc4054bc1bd8d 100644 --- a/test/Distributed/Runtime/distributed_actor_local_only_witness_and_call.swift +++ b/test/Distributed/Runtime/distributed_actor_local_only_witness_and_call.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_protocol_call_resilient_lib.swift b/test/Distributed/Runtime/distributed_actor_protocol_call_resilient_lib.swift index 64e66a5485d9f..07dd3f710ceb9 100644 --- a/test/Distributed/Runtime/distributed_actor_protocol_call_resilient_lib.swift +++ b/test/Distributed/Runtime/distributed_actor_protocol_call_resilient_lib.swift @@ -65,6 +65,7 @@ // RUN: | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall.swift b/test/Distributed/Runtime/distributed_actor_remoteCall.swift index f732d88d181c8..f054e685ad2cf 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCallTarget_demanglingTargetNames.swift b/test/Distributed/Runtime/distributed_actor_remoteCallTarget_demanglingTargetNames.swift index 241910a4b1972..e3cb2cf180db9 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCallTarget_demanglingTargetNames.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCallTarget_demanglingTargetNames.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions.swift index 61880dd7aaf7b..28c9042196c56 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions.swift @@ -5,6 +5,7 @@ // RUN: %env-SWIFT_DUMP_ACCESSIBLE_FUNCTIONS=true %target-run %t/a.out 2>&1 | %FileCheck %s --color --dump-input=always // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule.swift index 63dc2b6383ccb..60bf311e6af53 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule.swift @@ -75,6 +75,7 @@ // RUN: | %FileCheck %s --color --dump-input=always // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule_irgen.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule_irgen.swift index 2df7839292d52..30b899d6ea21f 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule_irgen.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_accessibleFunctions_crossModule_irgen.swift @@ -46,6 +46,7 @@ // RUN: | %FileCheck %s --color --dump-input=always // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_argument_labels.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_argument_labels.swift index 5d6daa09ab8bb..45d26f4128003 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_argument_labels.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_argument_labels.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.7-abi-triple -parse-as-library) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method.swift index 1d696894bbdfd..a23ca03d8da73 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method_in_presence_of_multiple_systems.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method_in_presence_of_multiple_systems.swift index 76789e511e465..2058a96aea401 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method_in_presence_of_multiple_systems.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_protocol_method_in_presence_of_multiple_systems.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s --color // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remoteCall_roundtrip.swift b/test/Distributed/Runtime/distributed_actor_remoteCall_roundtrip.swift index a653101191543..17628852ccb4a 100644 --- a/test/Distributed/Runtime/distributed_actor_remoteCall_roundtrip.swift +++ b/test/Distributed/Runtime/distributed_actor_remoteCall_roundtrip.swift @@ -7,6 +7,7 @@ // X: %target-run-simple-swift( -Xfrontend -module-name=main -target %target-swift-5.7-abi-triple -parse-as-library -Xfrontend -I -Xfrontend %t ) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remote_fieldsDontCrashDeinit.swift b/test/Distributed/Runtime/distributed_actor_remote_fieldsDontCrashDeinit.swift index ab5d32413c2bd..ba3c49f518886 100644 --- a/test/Distributed/Runtime/distributed_actor_remote_fieldsDontCrashDeinit.swift +++ b/test/Distributed/Runtime/distributed_actor_remote_fieldsDontCrashDeinit.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remote_functions.swift b/test/Distributed/Runtime/distributed_actor_remote_functions.swift index 993eef54a2e20..477dc0f979645 100644 --- a/test/Distributed/Runtime/distributed_actor_remote_functions.swift +++ b/test/Distributed/Runtime/distributed_actor_remote_functions.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-target %target-swift-5.7-abi-triple -parse-as-library) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_remote_retains_system.swift b/test/Distributed/Runtime/distributed_actor_remote_retains_system.swift index c6d8867b89562..067298d130480 100644 --- a/test/Distributed/Runtime/distributed_actor_remote_retains_system.swift +++ b/test/Distributed/Runtime/distributed_actor_remote_retains_system.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.7-abi-triple -parse-as-library) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_self_calls.swift b/test/Distributed/Runtime/distributed_actor_self_calls.swift index 6eb9ce1ed8d68..3ef7740424717 100644 --- a/test/Distributed/Runtime/distributed_actor_self_calls.swift +++ b/test/Distributed/Runtime/distributed_actor_self_calls.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.7-abi-triple -parse-as-library) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_system_decoder_subclass.swift b/test/Distributed/Runtime/distributed_actor_system_decoder_subclass.swift index 63d3ae21b208c..57917502e02f5 100644 --- a/test/Distributed/Runtime/distributed_actor_system_decoder_subclass.swift +++ b/test/Distributed/Runtime/distributed_actor_system_decoder_subclass.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift( -target %target-swift-5.7-abi-triple -parse-as-library) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_actor_task_executor.swift b/test/Distributed/Runtime/distributed_actor_task_executor.swift index ea77de27a4ceb..502f5b47955ef 100644 --- a/test/Distributed/Runtime/distributed_actor_task_executor.swift +++ b/test/Distributed/Runtime/distributed_actor_task_executor.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: libdispatch diff --git a/test/Distributed/Runtime/distributed_actor_to_actor.swift b/test/Distributed/Runtime/distributed_actor_to_actor.swift index b56cd1c239ccb..ba4466e4c852e 100644 --- a/test/Distributed/Runtime/distributed_actor_to_actor.swift +++ b/test/Distributed/Runtime/distributed_actor_to_actor.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed // REQUIRES: libdispatch diff --git a/test/Distributed/Runtime/distributed_actor_whenLocal.swift b/test/Distributed/Runtime/distributed_actor_whenLocal.swift index 766260ba6f04e..403410e9aad49 100644 --- a/test/Distributed/Runtime/distributed_actor_whenLocal.swift +++ b/test/Distributed/Runtime/distributed_actor_whenLocal.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_func_metadata.swift b/test/Distributed/Runtime/distributed_func_metadata.swift index a3f15abff0543..8acb0ea73e910 100644 --- a/test/Distributed/Runtime/distributed_func_metadata.swift +++ b/test/Distributed/Runtime/distributed_func_metadata.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/Distributed/Runtime/distributed_parameter_validation.swift b/test/Distributed/Runtime/distributed_parameter_validation.swift index 5bf49d5d0447b..723e5baec0228 100644 --- a/test/Distributed/Runtime/distributed_parameter_validation.swift +++ b/test/Distributed/Runtime/distributed_parameter_validation.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: distributed diff --git a/test/IRGen/async/throwing.swift b/test/IRGen/async/throwing.swift index 37f4b025edb0c..9895230b5bbaf 100644 --- a/test/IRGen/async/throwing.swift +++ b/test/IRGen/async/throwing.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/main | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime // UNSUPPORTED: back_deployment_runtime diff --git a/test/IRGen/bitwise-copyable-derived-loadRaw.swift b/test/IRGen/bitwise-copyable-derived-loadRaw.swift index 953273b68a423..a644f97602c9c 100644 --- a/test/IRGen/bitwise-copyable-derived-loadRaw.swift +++ b/test/IRGen/bitwise-copyable-derived-loadRaw.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature BuiltinModule) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_BuiltinModule // Execute an unaligned load of SIMD16 which conforms to a protocol derived from BitwiseCopyable. diff --git a/test/IRGen/bitwise-copyable-loadRaw.swift b/test/IRGen/bitwise-copyable-loadRaw.swift index 50fca1001724b..6ff3842c32c5c 100644 --- a/test/IRGen/bitwise-copyable-loadRaw.swift +++ b/test/IRGen/bitwise-copyable-loadRaw.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature BuiltinModule -Xfrontend -disable-availability-checking) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_BuiltinModule // Execute an unaligned load of SIMD16 which retroactively conforms directly to BitwiseCopyable. diff --git a/test/IRGen/disable-instantiation-cache-exec.swift b/test/IRGen/disable-instantiation-cache-exec.swift index f55a7af6829a1..f3364bc23dd85 100644 --- a/test/IRGen/disable-instantiation-cache-exec.swift +++ b/test/IRGen/disable-instantiation-cache-exec.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // The -disable-preallocated-instantiation-caches flag does not support back-deployment. // UNSUPPORTED: use_os_stdlib diff --git a/test/IRGen/noncopyable_metadata_requests.swift b/test/IRGen/noncopyable_metadata_requests.swift index d0981d9be0c3c..f16bd60f57145 100644 --- a/test/IRGen/noncopyable_metadata_requests.swift +++ b/test/IRGen/noncopyable_metadata_requests.swift @@ -15,6 +15,7 @@ // REQUIRES: OS=macosx // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This type's generic parameter is noncopyable, so older runtimes can't diff --git a/test/IRGen/opaque_result_alwaysInlineIntoClient.swift b/test/IRGen/opaque_result_alwaysInlineIntoClient.swift index c123861446a22..d7986526f9e27 100644 --- a/test/IRGen/opaque_result_alwaysInlineIntoClient.swift +++ b/test/IRGen/opaque_result_alwaysInlineIntoClient.swift @@ -11,6 +11,7 @@ // REQUIRES: OS=macosx && (CPU=x86_64 || CPU=arm64) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This test requires executable tests to be run on the same machine as the // compiler, as it links with a dylib that it doesn't arrange to get uploaded diff --git a/test/IRGen/prespecialized-metadata/class-inmodule-1argument-metatype-run.swift b/test/IRGen/prespecialized-metadata/class-inmodule-1argument-metatype-run.swift index 2d5a351db27b7..397bd9ab6f873 100644 --- a/test/IRGen/prespecialized-metadata/class-inmodule-1argument-metatype-run.swift +++ b/test/IRGen/prespecialized-metadata/class-inmodule-1argument-metatype-run.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(%S/Inputs/main.swift %S/Inputs/consume-logging-metadata-value.swift -Xfrontend -prespecialize-generic-metadata -target %module-target-future) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios diff --git a/test/IRGen/prespecialized-metadata/class-inmodule-1argument-run.swift b/test/IRGen/prespecialized-metadata/class-inmodule-1argument-run.swift index 11f31dff0dbe8..993870ab1f7aa 100644 --- a/test/IRGen/prespecialized-metadata/class-inmodule-1argument-run.swift +++ b/test/IRGen/prespecialized-metadata/class-inmodule-1argument-run.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(%S/Inputs/main.swift %S/Inputs/consume-logging-metadata-value.swift -Xfrontend -prespecialize-generic-metadata -target %module-target-future) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios @@ -44,29 +45,29 @@ func consume(clazzType: MyGenericClazz.Type) { public func doit() { - // CHECK: [[FLOAT_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ 48 + // CHECK: [[FLOAT_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ [[@LINE+1]] consume(MyGenericClazz()) - // CHECK: [[FLOAT_METADATA_ADDRESS]] MyGenericClazz @ 50 + // CHECK: [[FLOAT_METADATA_ADDRESS]] MyGenericClazz @ [[@LINE+1]] consume(clazz: MyGenericClazz()) - // CHECK: [[DOUBLE_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ 53 + // CHECK: [[DOUBLE_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ [[@LINE+1]] consume(MyGenericClazz()) - // CHECK: [[DOUBLE_METADATA_ADDRESS]] MyGenericClazz @ 55 + // CHECK: [[DOUBLE_METADATA_ADDRESS]] MyGenericClazz @ [[@LINE+1]] consume(clazz: MyGenericClazz()) - // CHECK: [[INT_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ 58 + // CHECK: [[INT_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ [[@LINE+1]] consume(MyGenericClazz()) - // CHECK: [[INT_METADATA_ADDRESS]] MyGenericClazz @ 60 + // CHECK: [[INT_METADATA_ADDRESS]] MyGenericClazz @ [[@LINE+1]] consume(clazz: MyGenericClazz()) - // CHECK: [[STRING_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ 63 + // CHECK: [[STRING_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz @ [[@LINE+1]] consume(MyGenericClazz()) - // CHECK: [[STRING_METADATA_ADDRESS]] MyGenericClazz @ 65 + // CHECK: [[STRING_METADATA_ADDRESS]] MyGenericClazz @ [[@LINE+1]] consume(clazz: MyGenericClazz()) - // CHECK: [[NESTED_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz> @ 68 + // CHECK: [[NESTED_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz> @ [[@LINE+1]] consume(MyGenericClazz>()) - // CHECK: [[NESTED_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz> @ 70 + // CHECK: [[NESTED_METADATA_ADDRESS:[0-9a-f]+]] MyGenericClazz> @ [[@LINE+1]] consume(clazz: MyGenericClazz>()) // CHECK: [[FLOAT_METADATA_METATYPE_ADDRESS:[0-9a-f]+]] MyGenericClazz diff --git a/test/IRGen/prespecialized-metadata/class-inmodule-2argument-1super-2argument-run.swift b/test/IRGen/prespecialized-metadata/class-inmodule-2argument-1super-2argument-run.swift index 694cdc0bea195..325116d6694a6 100644 --- a/test/IRGen/prespecialized-metadata/class-inmodule-2argument-1super-2argument-run.swift +++ b/test/IRGen/prespecialized-metadata/class-inmodule-2argument-1super-2argument-run.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(%S/Inputs/main.swift %S/Inputs/consume-logging-metadata-value.swift -Xfrontend -prespecialize-generic-metadata -target %module-target-future) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios @@ -61,20 +62,20 @@ func consume(derived: MyWeakMutableInstanceMethodBox @ 65 + // CHECK: [[SUPERCLASS_METADATA_INT_BOOL_ADDRESS:[0-9a-f]+]] WeakMutableInstanceMethodBox @ [[@LINE+1]] consume(WeakMutableInstanceMethodBox()) - // CHECK: [[SUPERCLASS_METADATA_INT_BOOL_ADDRESS]] WeakMutableInstanceMethodBox @ 67 + // CHECK: [[SUPERCLASS_METADATA_INT_BOOL_ADDRESS]] WeakMutableInstanceMethodBox @ [[@LINE+1]] consume(base: WeakMutableInstanceMethodBox()) - // CHECK: [[SUPERCLASS_METADATA_DOUBLE_FLOAT_ADDRESS:[0-9a-f]+]] WeakMutableInstanceMethodBox @ 69 + // CHECK: [[SUPERCLASS_METADATA_DOUBLE_FLOAT_ADDRESS:[0-9a-f]+]] WeakMutableInstanceMethodBox @ [[@LINE+1]] consume(WeakMutableInstanceMethodBox()) - // CHECK: [[SUPERCLASS_METADATA_DOUBLE_FLOAT_ADDRESS]] WeakMutableInstanceMethodBox @ 71 + // CHECK: [[SUPERCLASS_METADATA_DOUBLE_FLOAT_ADDRESS]] WeakMutableInstanceMethodBox @ [[@LINE+1]] consume(base: WeakMutableInstanceMethodBox()) - // CHECK: [[SUBCLASS_METADATA_INT_BOOL_ADDRESS:[0-9a-f]+]] MyWeakMutableInstanceMethodBox @ 74 + // CHECK: [[SUBCLASS_METADATA_INT_BOOL_ADDRESS:[0-9a-f]+]] MyWeakMutableInstanceMethodBox @ [[@LINE+1]] consume(MyWeakMutableInstanceMethodBox()) - // CHECK: [[SUPERCLASS_METADATA_INT_BOOL_ADDRESS]] MyWeakMutableInstanceMethodBox @ 76 + // CHECK: [[SUPERCLASS_METADATA_INT_BOOL_ADDRESS]] MyWeakMutableInstanceMethodBox @ [[@LINE+1]] consume(base: MyWeakMutableInstanceMethodBox()) - // CHECK: [[SUBCLASS_METADATA_INT_BOOL_ADDRESS]] MyWeakMutableInstanceMethodBox @ 78 + // CHECK: [[SUBCLASS_METADATA_INT_BOOL_ADDRESS]] MyWeakMutableInstanceMethodBox @ [[@LINE+1]] consume(derived: MyWeakMutableInstanceMethodBox()) // CHECK: [[SUBCLASS_METADATA_DOUBLE_FLOAT_ADDRESS:[0-9a-f]+]] MyWeakMutableInstanceMethodBox diff --git a/test/IRGen/prespecialized-metadata/struct-extradata-run.swift b/test/IRGen/prespecialized-metadata/struct-extradata-run.swift index fc90904ed251e..cc2444b238361 100644 --- a/test/IRGen/prespecialized-metadata/struct-extradata-run.swift +++ b/test/IRGen/prespecialized-metadata/struct-extradata-run.swift @@ -10,6 +10,7 @@ // REQUIRES: OS=macosx // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: swift_test_mode_optimize // UNSUPPORTED: swift_test_mode_optimize_size diff --git a/test/IRGen/prespecialized-metadata/struct-inmodule-otherfile-1argument-run.swift b/test/IRGen/prespecialized-metadata/struct-inmodule-otherfile-1argument-run.swift index 6bac16a11a750..4f647a5795c2b 100644 --- a/test/IRGen/prespecialized-metadata/struct-inmodule-otherfile-1argument-run.swift +++ b/test/IRGen/prespecialized-metadata/struct-inmodule-otherfile-1argument-run.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(%S/Inputs/main.swift %S/Inputs/consume-logging-metadata-value.swift %S/Inputs/struct-nonfrozen-1argument.swift -Xfrontend -prespecialize-generic-metadata -target %module-target-future) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios @@ -17,8 +18,8 @@ func consume(oneArgument: OneArgument) { } func doit() { - // CHECK: [[METADATA_ADDRESS:[0-9a-f]+]] 3 @ 21 + // CHECK: [[METADATA_ADDRESS:[0-9a-f]+]] 3 @ [[@LINE+1]] consume(OneArgument(3)) - // CHECK: [[METADATA_ADDRESS]] 3 @ 23 + // CHECK: [[METADATA_ADDRESS]] 3 @ [[@LINE+1]] consume(oneArgument: OneArgument(3)) } diff --git a/test/IRGen/prespecialized-metadata/struct-multi-conformance.swift b/test/IRGen/prespecialized-metadata/struct-multi-conformance.swift index 3b40dea9726bc..6274f28ed0105 100644 --- a/test/IRGen/prespecialized-metadata/struct-multi-conformance.swift +++ b/test/IRGen/prespecialized-metadata/struct-multi-conformance.swift @@ -13,6 +13,7 @@ // REQUIRES: OS=macosx // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: swift_test_mode_optimize // UNSUPPORTED: swift_test_mode_optimize_size diff --git a/test/IRGen/prespecialized-metadata/struct-outmodule-run.swift b/test/IRGen/prespecialized-metadata/struct-outmodule-run.swift index b868350040ac6..d963b3b8d4f4f 100644 --- a/test/IRGen/prespecialized-metadata/struct-outmodule-run.swift +++ b/test/IRGen/prespecialized-metadata/struct-outmodule-run.swift @@ -10,6 +10,7 @@ // REQUIRES: OS=macosx // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: swift_test_mode_optimize // UNSUPPORTED: swift_test_mode_optimize_size @@ -51,27 +52,27 @@ func consumeType_OneArgumentAtFirstUsageDynamic_Dynamic(line: UInt = #line) { @inline(never) func doit() { - // CHECK: [[STATIC_METADATA_ADDRESS:[0-9a-f]+]] @ 55 + // CHECK: [[STATIC_METADATA_ADDRESS:[0-9a-f]+]] @ [[@LINE+1]] consumeType_OneArgumentAtFirstUsageStatic_Static() - // CHECK: [[STATIC_METADATA_ADDRESS]] @ 57 + // CHECK: [[STATIC_METADATA_ADDRESS]] @ [[@LINE+1]] consumeType_OneArgumentAtFirstUsageStatic_Dynamic() - // CHECK: [[STATIC_METADATA_ADDRESS]] @ 59 + // CHECK: [[STATIC_METADATA_ADDRESS]] @ [[@LINE+1]] consumeType_OneArgumentAtFirstUsageStatic_Dynamic() - // CHECK: [[DYNAMIC_METADATA_ADDRESS:[0-9a-f]+]] @ 61 + // CHECK: [[DYNAMIC_METADATA_ADDRESS:[0-9a-f]+]] @ [[@LINE+1]] consumeType_OneArgumentAtFirstUsageDynamic_Dynamic() - // CHECK: [[DYNAMIC_METADATA_ADDRESS:[0-9a-f]+]] @ 63 + // CHECK: [[DYNAMIC_METADATA_ADDRESS:[0-9a-f]+]] @ [[@LINE+1]] consumeType_OneArgumentAtFirstUsageDynamic_Dynamic() - // CHECK: [[DYNAMIC_METADATA_ADDRESS]] @ 65 + // CHECK: [[DYNAMIC_METADATA_ADDRESS]] @ [[@LINE+1]] consumeType_OneArgumentAtFirstUsageDynamic_Static() let staticMetadata = ptr(to: OneArgument.self) - // CHECK: [[STATIC_METADATA_ADDRESS]] @ 69 + // CHECK: [[STATIC_METADATA_ADDRESS]] @ [[@LINE+1]] print(staticMetadata, "@", #line) assert(isStaticallySpecializedGenericMetadata(staticMetadata)) assert(!isCanonicalStaticallySpecializedGenericMetadata(staticMetadata)) let dynamicMetadata = ptr(to: OneArgument.self) - // CHECK: [[DYNAMIC_METADATA_ADDRESS]] @ 75 + // CHECK: [[DYNAMIC_METADATA_ADDRESS]] @ [[@LINE+1]] print(dynamicMetadata, "@", #line) assert(!isStaticallySpecializedGenericMetadata(dynamicMetadata)) assert(!isCanonicalStaticallySpecializedGenericMetadata(dynamicMetadata)) diff --git a/test/IRGen/run-coroutine_accessors.swift b/test/IRGen/run-coroutine_accessors.swift index fbf23d5d4fc8e..8559fb81439c3 100644 --- a/test/IRGen/run-coroutine_accessors.swift +++ b/test/IRGen/run-coroutine_accessors.swift @@ -87,6 +87,7 @@ // RUN: %target-run %t/main %t/%target-library-name(Library) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: concurrency_runtime diff --git a/test/IRGen/run_variadic_generics.sil b/test/IRGen/run_variadic_generics.sil index fcf475858efdd..515ddc5c6fff2 100644 --- a/test/IRGen/run_variadic_generics.sil +++ b/test/IRGen/run_variadic_generics.sil @@ -8,6 +8,7 @@ // RUN: %target-run %t/main %t/%target-library-name(PrintShims) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Builtin import Swift diff --git a/test/IRGen/sensitive.swift b/test/IRGen/sensitive.swift index 47e7637e42c71..130b4ed47dc98 100644 --- a/test/IRGen/sensitive.swift +++ b/test/IRGen/sensitive.swift @@ -16,6 +16,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_Sensitive // UNSUPPORTED: use_os_stdlib diff --git a/test/IRGen/testing-enabled-resilient-super-class.swift b/test/IRGen/testing-enabled-resilient-super-class.swift index 88f7ba893d553..9965a34e4d036 100644 --- a/test/IRGen/testing-enabled-resilient-super-class.swift +++ b/test/IRGen/testing-enabled-resilient-super-class.swift @@ -12,6 +12,7 @@ // RUN: %target-run %t/main %t/%target-library-name(resilient) | %FileCheck --check-prefix=EXEC-CHECK %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @testable import resilient diff --git a/test/IRGen/witness-method-elimination-two-modules.swift b/test/IRGen/witness-method-elimination-two-modules.swift index e056e2a4333da..2b07d6c6943ce 100644 --- a/test/IRGen/witness-method-elimination-two-modules.swift +++ b/test/IRGen/witness-method-elimination-two-modules.swift @@ -31,6 +31,7 @@ // RUN: %target-run %t/main | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME(mracek): More work needed to get this to work on non-Apple platforms. // REQUIRES: VENDOR=apple diff --git a/test/Interop/Cxx/class/copy-move-assignment-executable.swift b/test/Interop/Cxx/class/copy-move-assignment-executable.swift index 3ba632fb83e65..4e3296faf4aae 100644 --- a/test/Interop/Cxx/class/copy-move-assignment-executable.swift +++ b/test/Interop/Cxx/class/copy-move-assignment-executable.swift @@ -4,6 +4,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -Xfrontend -enable-experimental-cxx-interop -O) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import CopyMoveAssignment diff --git a/test/Interop/Cxx/class/inheritance/functions.swift b/test/Interop/Cxx/class/inheritance/functions.swift index a1caac06eb47b..7da8ed88fca50 100644 --- a/test/Interop/Cxx/class/inheritance/functions.swift +++ b/test/Interop/Cxx/class/inheritance/functions.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -Xfrontend -enable-experimental-cxx-interop) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import Functions diff --git a/test/Interop/Cxx/class/move-only/move-only-cxx-value-type-generics.swift b/test/Interop/Cxx/class/move-only/move-only-cxx-value-type-generics.swift index 628bff343712f..7f9f7554ad057 100644 --- a/test/Interop/Cxx/class/move-only/move-only-cxx-value-type-generics.swift +++ b/test/Interop/Cxx/class/move-only/move-only-cxx-value-type-generics.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=upcoming-swift -O -Xfrontend -sil-verify-none) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values diff --git a/test/Interop/Cxx/class/move-only/move-only-cxx-value-type.swift b/test/Interop/Cxx/class/move-only/move-only-cxx-value-type.swift index f25fa75b10466..c5964de0b0c22 100644 --- a/test/Interop/Cxx/class/move-only/move-only-cxx-value-type.swift +++ b/test/Interop/Cxx/class/move-only/move-only-cxx-value-type.swift @@ -3,6 +3,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=swift-6 -O) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import MoveOnlyCxxValueType import StdlibUnittest diff --git a/test/Interop/Cxx/class/safe-use-of-returned-reference-with-borrowing.swift b/test/Interop/Cxx/class/safe-use-of-returned-reference-with-borrowing.swift index 5d4bbde807b70..8e3340d2f45e4 100644 --- a/test/Interop/Cxx/class/safe-use-of-returned-reference-with-borrowing.swift +++ b/test/Interop/Cxx/class/safe-use-of-returned-reference-with-borrowing.swift @@ -9,6 +9,7 @@ // RUN: %target-swift-frontend -DBORROW_PASS_TO_VALUE_PARAM -emit-ir -o /dev/null -I %t/Inputs %t/test.swift -enable-experimental-cxx-interop -verify // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values //--- Inputs/module.modulemap module CxxTest { diff --git a/test/Interop/Cxx/class/zero-sized-field.swift b/test/Interop/Cxx/class/zero-sized-field.swift index 04403422e4e2b..575558015337c 100644 --- a/test/Interop/Cxx/class/zero-sized-field.swift +++ b/test/Interop/Cxx/class/zero-sized-field.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -Xfrontend -enable-experimental-cxx-interop -Xcc -std=c++20 -Xfrontend -index-store-path -Xfrontend %t/index) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import MemberVariables diff --git a/test/Interop/Cxx/ergonomics/implicit-computed-properties.swift b/test/Interop/Cxx/ergonomics/implicit-computed-properties.swift index 932ddd13c35c6..44db7b8a738fa 100644 --- a/test/Interop/Cxx/ergonomics/implicit-computed-properties.swift +++ b/test/Interop/Cxx/ergonomics/implicit-computed-properties.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop -Xfrontend -cxx-interop-getters-setters-as-properties) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // // Crash when running on windows: rdar://88391102 // XFAIL: OS=windows-msvc diff --git a/test/Interop/Cxx/exceptions/trap-on-exception-execution.swift b/test/Interop/Cxx/exceptions/trap-on-exception-execution.swift index 3d341bdbb34d2..5589db7602257 100644 --- a/test/Interop/Cxx/exceptions/trap-on-exception-execution.swift +++ b/test/Interop/Cxx/exceptions/trap-on-exception-execution.swift @@ -14,6 +14,7 @@ // RUN: %target-run %t/trap-exceptions-opt // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME: Support MSVC exceptions. // UNSUPPORTED: OS=windows-msvc diff --git a/test/Interop/Cxx/foreign-reference/witness-table.swift b/test/Interop/Cxx/foreign-reference/witness-table.swift index 4b88184cfaf53..8dcd70a76d124 100644 --- a/test/Interop/Cxx/foreign-reference/witness-table.swift +++ b/test/Interop/Cxx/foreign-reference/witness-table.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -Xfrontend -enable-experimental-cxx-interop -Xfrontend -validate-tbd-against-ir=none -Xfrontend -disable-llvm-verify -g) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // XFAIL: OS=windows-msvc // Temporarily disable when running with an older runtime (rdar://128681577) diff --git a/test/Interop/Cxx/operators/move-only/move-only-synthesized-properties.swift b/test/Interop/Cxx/operators/move-only/move-only-synthesized-properties.swift index 9ede24ccb6e10..b8835eb0f9130 100644 --- a/test/Interop/Cxx/operators/move-only/move-only-synthesized-properties.swift +++ b/test/Interop/Cxx/operators/move-only/move-only-synthesized-properties.swift @@ -8,6 +8,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=upcoming-swift -O -D HAS_NONCOPYABLE_GENERICS) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import MoveOnlyCxxOperators import StdlibUnittest diff --git a/test/Interop/Cxx/reference/rvalue-reference.swift b/test/Interop/Cxx/reference/rvalue-reference.swift index e62c320fc8b28..b344a80042143 100644 --- a/test/Interop/Cxx/reference/rvalue-reference.swift +++ b/test/Interop/Cxx/reference/rvalue-reference.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs/ -Xfrontend -enable-experimental-cxx-interop -O) | %FileCheck -check-prefix=CHECK-DASH-O %s // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import SpecialMembers diff --git a/test/Interop/Cxx/stdlib/overlay/custom-collection.swift b/test/Interop/Cxx/stdlib/overlay/custom-collection.swift index 6d9857690df62..1bca280fea374 100644 --- a/test/Interop/Cxx/stdlib/overlay/custom-collection.swift +++ b/test/Interop/Cxx/stdlib/overlay/custom-collection.swift @@ -5,6 +5,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs -cxx-interoperability-mode=upcoming-swift) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import CustomSequence diff --git a/test/Interop/Cxx/stdlib/print-stdlib-types.swift b/test/Interop/Cxx/stdlib/print-stdlib-types.swift index 3c67a557b4970..3132133dbc7ee 100644 --- a/test/Interop/Cxx/stdlib/print-stdlib-types.swift +++ b/test/Interop/Cxx/stdlib/print-stdlib-types.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-cxx-interoperability-mode=default -Xfrontend -disable-availability-checking -I %S/Inputs) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // XFAIL: OS=windows-msvc // FIXME: We can't import std::unique_ptr or std::shared_ptr properly on Windows (https://github.com/apple/swift/issues/70226) diff --git a/test/Interop/Cxx/stdlib/use-std-map.swift b/test/Interop/Cxx/stdlib/use-std-map.swift index 2448385eff6d9..35e687034955a 100644 --- a/test/Interop/Cxx/stdlib/use-std-map.swift +++ b/test/Interop/Cxx/stdlib/use-std-map.swift @@ -10,6 +10,7 @@ // RUN: %target-run-simple-swift(-D BRIDGING_HEADER -import-objc-header %t2/std-map-bridging-header.h -cxx-interoperability-mode=upcoming-swift) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // // REQUIRES: OS=macosx || OS=linux-gnu || OS=freebsd diff --git a/test/Interop/Cxx/stdlib/use-std-span.swift b/test/Interop/Cxx/stdlib/use-std-span.swift index 89644de5a9d90..a606e188937ad 100644 --- a/test/Interop/Cxx/stdlib/use-std-span.swift +++ b/test/Interop/Cxx/stdlib/use-std-span.swift @@ -8,6 +8,7 @@ // UNSUPPORTED: OS=windows-msvc // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest #if !BRIDGING_HEADER diff --git a/test/Interop/Cxx/stdlib/use-std-string-with-opts.swift b/test/Interop/Cxx/stdlib/use-std-string-with-opts.swift index 5b06bd3cf1f81..2828d1e42fbe4 100644 --- a/test/Interop/Cxx/stdlib/use-std-string-with-opts.swift +++ b/test/Interop/Cxx/stdlib/use-std-string-with-opts.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs -cxx-interoperability-mode=default -Xcc -std=c++20 -O) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Tests optimizations related to CxxStdlib. diff --git a/test/Interop/Cxx/stdlib/use-std-unique-ptr.swift b/test/Interop/Cxx/stdlib/use-std-unique-ptr.swift index 8e38e9443eb34..5084d10846d3b 100644 --- a/test/Interop/Cxx/stdlib/use-std-unique-ptr.swift +++ b/test/Interop/Cxx/stdlib/use-std-unique-ptr.swift @@ -6,6 +6,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs -cxx-interoperability-mode=upcoming-swift -Xcc -std=c++20) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // https://github.com/apple/swift/issues/70226 // UNSUPPORTED: OS=windows-msvc diff --git a/test/Interop/Cxx/stdlib/use-std-vector.swift b/test/Interop/Cxx/stdlib/use-std-vector.swift index 4aa0a86adedc4..f9947b8161d72 100644 --- a/test/Interop/Cxx/stdlib/use-std-vector.swift +++ b/test/Interop/Cxx/stdlib/use-std-vector.swift @@ -13,6 +13,7 @@ // %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop -Xcc -std=gnu++20) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest #if !BRIDGING_HEADER diff --git a/test/Interop/Cxx/value-witness-table/custom-destructors-virtual.swift b/test/Interop/Cxx/value-witness-table/custom-destructors-virtual.swift index b79269fb864f6..7256e55bb2154 100644 --- a/test/Interop/Cxx/value-witness-table/custom-destructors-virtual.swift +++ b/test/Interop/Cxx/value-witness-table/custom-destructors-virtual.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-I %S/Inputs -cxx-interoperability-mode=default -O) // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import CustomDestructor import StdlibUnittest diff --git a/test/Interop/CxxToSwiftToCxx/bridge-cxx-struct-back-to-cxx-execution.cpp b/test/Interop/CxxToSwiftToCxx/bridge-cxx-struct-back-to-cxx-execution.cpp index 354760458e97f..7e2bd2adc95e0 100644 --- a/test/Interop/CxxToSwiftToCxx/bridge-cxx-struct-back-to-cxx-execution.cpp +++ b/test/Interop/CxxToSwiftToCxx/bridge-cxx-struct-back-to-cxx-execution.cpp @@ -12,6 +12,7 @@ // RUN: %target-run %t/swift-cxx-execution | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_LifetimeDependence //--- header.h diff --git a/test/Interop/CxxToSwiftToCxx/span/span-execution.cpp b/test/Interop/CxxToSwiftToCxx/span/span-execution.cpp index 06864db50f3c3..c97b50dee551c 100644 --- a/test/Interop/CxxToSwiftToCxx/span/span-execution.cpp +++ b/test/Interop/CxxToSwiftToCxx/span/span-execution.cpp @@ -13,6 +13,7 @@ // UNSUPPORTED: OS=linux-gnu // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values //--- header.h #include diff --git a/test/Interop/SwiftToCxx/structs/nested-structs-in-cxx-execution.cpp b/test/Interop/SwiftToCxx/structs/nested-structs-in-cxx-execution.cpp index ab7b07ad0472d..ab0f8faeedaae 100644 --- a/test/Interop/SwiftToCxx/structs/nested-structs-in-cxx-execution.cpp +++ b/test/Interop/SwiftToCxx/structs/nested-structs-in-cxx-execution.cpp @@ -10,6 +10,7 @@ // RUN: %target-run %t/swift-structs-execution // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values #include "structs.h" diff --git a/test/Interpreter/FunctionConversion.swift b/test/Interpreter/FunctionConversion.swift index 8c68686a030a4..ab10fcdf26581 100644 --- a/test/Interpreter/FunctionConversion.swift +++ b/test/Interpreter/FunctionConversion.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // import StdlibUnittest diff --git a/test/Interpreter/NewtypeLeak.swift b/test/Interpreter/NewtypeLeak.swift index 0fcf97af3649b..5239a36963d04 100644 --- a/test/Interpreter/NewtypeLeak.swift +++ b/test/Interpreter/NewtypeLeak.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/newtype // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/SDK/AnyObject_native_interop.swift b/test/Interpreter/SDK/AnyObject_native_interop.swift index 82b9fe9d5b055..16aa16b8dfb7b 100644 --- a/test/Interpreter/SDK/AnyObject_native_interop.swift +++ b/test/Interpreter/SDK/AnyObject_native_interop.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/Foundation_test.swift b/test/Interpreter/SDK/Foundation_test.swift index 0b4dc43ce0d9e..e6bc7c2898dd7 100644 --- a/test/Interpreter/SDK/Foundation_test.swift +++ b/test/Interpreter/SDK/Foundation_test.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/autorelease.swift b/test/Interpreter/SDK/autorelease.swift index 8a7f396a83a5c..2afec171ccd49 100644 --- a/test/Interpreter/SDK/autorelease.swift +++ b/test/Interpreter/SDK/autorelease.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/c_pointers.swift b/test/Interpreter/SDK/c_pointers.swift index 6af214404e757..352eeabfdbe98 100644 --- a/test/Interpreter/SDK/c_pointers.swift +++ b/test/Interpreter/SDK/c_pointers.swift @@ -4,6 +4,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/cf.swift b/test/Interpreter/SDK/cf.swift index c5827571d9324..0edfffa84dc45 100644 --- a/test/Interpreter/SDK/cf.swift +++ b/test/Interpreter/SDK/cf.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/cf_extensions.swift b/test/Interpreter/SDK/cf_extensions.swift index 91d37d5149796..ea712aa256741 100644 --- a/test/Interpreter/SDK/cf_extensions.swift +++ b/test/Interpreter/SDK/cf_extensions.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/class_getImageName.swift b/test/Interpreter/SDK/class_getImageName.swift index a80e3b3129320..3b6a910560bcd 100644 --- a/test/Interpreter/SDK/class_getImageName.swift +++ b/test/Interpreter/SDK/class_getImageName.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/main %t/libGetImageNameHelper.dylib // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Darwin diff --git a/test/Interpreter/SDK/errors.swift b/test/Interpreter/SDK/errors.swift index 64e45270a2aee..089ef696aadef 100644 --- a/test/Interpreter/SDK/errors.swift +++ b/test/Interpreter/SDK/errors.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/main // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // diff --git a/test/Interpreter/SDK/objc_block_generic.swift b/test/Interpreter/SDK/objc_block_generic.swift index 5f967ee06a7af..cc26199ed1ed5 100644 --- a/test/Interpreter/SDK/objc_block_generic.swift +++ b/test/Interpreter/SDK/objc_block_generic.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/objc_bridge.swift b/test/Interpreter/SDK/objc_bridge.swift index 424b0fe8c74a6..761a77fdb56ac 100644 --- a/test/Interpreter/SDK/objc_bridge.swift +++ b/test/Interpreter/SDK/objc_bridge.swift @@ -13,6 +13,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/SDK/objc_bridge_cast_newtype.swift b/test/Interpreter/SDK/objc_bridge_cast_newtype.swift index 0fb3c73495d16..48a6d98f884cd 100644 --- a/test/Interpreter/SDK/objc_bridge_cast_newtype.swift +++ b/test/Interpreter/SDK/objc_bridge_cast_newtype.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/main // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // Test dynamic casts that bridge value types through the runtime. diff --git a/test/Interpreter/SDK/objc_dynamic_lookup.swift b/test/Interpreter/SDK/objc_dynamic_lookup.swift index 7cbd1f25a56cd..435921aec04c4 100644 --- a/test/Interpreter/SDK/objc_dynamic_lookup.swift +++ b/test/Interpreter/SDK/objc_dynamic_lookup.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/objc_dynamic_subclass_protocol_lookup.swift b/test/Interpreter/SDK/objc_dynamic_subclass_protocol_lookup.swift index 7ba60ae0a3f93..4fbf7c4172c10 100644 --- a/test/Interpreter/SDK/objc_dynamic_subclass_protocol_lookup.swift +++ b/test/Interpreter/SDK/objc_dynamic_subclass_protocol_lookup.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/objc_fast_enumeration.swift b/test/Interpreter/SDK/objc_fast_enumeration.swift index 380307ab4c3ad..d99735e437d94 100644 --- a/test/Interpreter/SDK/objc_fast_enumeration.swift +++ b/test/Interpreter/SDK/objc_fast_enumeration.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/objc_getClass.swift b/test/Interpreter/SDK/objc_getClass.swift index 945771d24819b..30cce2edd402e 100644 --- a/test/Interpreter/SDK/objc_getClass.swift +++ b/test/Interpreter/SDK/objc_getClass.swift @@ -16,6 +16,7 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // Test Swift's hook for objc_getClass() diff --git a/test/Interpreter/SDK/objc_implicit_inner_pointer.swift b/test/Interpreter/SDK/objc_implicit_inner_pointer.swift index a2227a213537c..92054ea636700 100644 --- a/test/Interpreter/SDK/objc_implicit_inner_pointer.swift +++ b/test/Interpreter/SDK/objc_implicit_inner_pointer.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/main | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/SDK/objc_inner_pointer.swift b/test/Interpreter/SDK/objc_inner_pointer.swift index 710404075ac0d..417808a529733 100644 --- a/test/Interpreter/SDK/objc_inner_pointer.swift +++ b/test/Interpreter/SDK/objc_inner_pointer.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/Interpreter/SDK/objc_old_swift.swift b/test/Interpreter/SDK/objc_old_swift.swift index 4b9250eb1121a..2ae782370d40d 100644 --- a/test/Interpreter/SDK/objc_old_swift.swift +++ b/test/Interpreter/SDK/objc_old_swift.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/objc_old_swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // The bit twiddling done by this test falls afoul of ptrauth on ARM64e. We diff --git a/test/Interpreter/casts.swift b/test/Interpreter/casts.swift index a624c6bca0d46..d5c50a4aeebae 100644 --- a/test/Interpreter/casts.swift +++ b/test/Interpreter/casts.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import StdlibUnittest diff --git a/test/Interpreter/class_in_constrained_extension.swift b/test/Interpreter/class_in_constrained_extension.swift index 7ffad46954e52..2b1865d88f93d 100644 --- a/test/Interpreter/class_in_constrained_extension.swift +++ b/test/Interpreter/class_in_constrained_extension.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values class Foo {} diff --git a/test/Interpreter/class_resilience.swift b/test/Interpreter/class_resilience.swift index 0742e31b118d0..1cd7a90408e41 100644 --- a/test/Interpreter/class_resilience.swift +++ b/test/Interpreter/class_resilience.swift @@ -29,6 +29,7 @@ // RUN: %target-run %t/main2 %t/%target-library-name(resilient_struct_wmo) %t/%target-library-name(resilient_class_wmo) %t/%target-library-name(fixed_layout_class_wmo) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/conditional_conformances_modules.swift b/test/Interpreter/conditional_conformances_modules.swift index 1fca8aae5113a..565831923502f 100644 --- a/test/Interpreter/conditional_conformances_modules.swift +++ b/test/Interpreter/conditional_conformances_modules.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/conditional_conformances_modules %t/%target-library-name(Basic) %t/%target-library-name(WithAssoc) %t/%target-library-name(Subclass) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME: seems to fail on 32-bit simulator? // REQUIRES: OS=macosx || OS=linux-gnu || OS=linux-androideabi || OS=linux-android diff --git a/test/Interpreter/convenience_init_swift5.swift b/test/Interpreter/convenience_init_swift5.swift index 6dd80e28423d4..2706903e729a8 100644 --- a/test/Interpreter/convenience_init_swift5.swift +++ b/test/Interpreter/convenience_init_swift5.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/main // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/coroutine_accessors_default_implementations.swift b/test/Interpreter/coroutine_accessors_default_implementations.swift index ecd7b2bb97354..e20c1f8e77c5c 100644 --- a/test/Interpreter/coroutine_accessors_default_implementations.swift +++ b/test/Interpreter/coroutine_accessors_default_implementations.swift @@ -43,6 +43,7 @@ // REQUIRES: swift_feature_CoroutineAccessors // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This test verifies the backwards compatibility of binaries built against old // SDKs running on newer OSes (where CoroutineAccessors has been enabled). diff --git a/test/Interpreter/currying_protocols.swift b/test/Interpreter/currying_protocols.swift index 104a6657c5a7d..df4ca78c0de32 100644 --- a/test/Interpreter/currying_protocols.swift +++ b/test/Interpreter/currying_protocols.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values enum Medal { case Bronze, Silver, Gold diff --git a/test/Interpreter/dynamic_cast_dict_conditional_type_metadata.swift b/test/Interpreter/dynamic_cast_dict_conditional_type_metadata.swift index 7eb153171c182..b2680d0db8cee 100644 --- a/test/Interpreter/dynamic_cast_dict_conditional_type_metadata.swift +++ b/test/Interpreter/dynamic_cast_dict_conditional_type_metadata.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // rdar://problem/28022201 exposed an ABI mismatch bug between the C++ code diff --git a/test/Interpreter/dynamic_cast_dict_unconditional_type_metadata.swift b/test/Interpreter/dynamic_cast_dict_unconditional_type_metadata.swift index da8213171aa0e..6ed5dc9b024b4 100644 --- a/test/Interpreter/dynamic_cast_dict_unconditional_type_metadata.swift +++ b/test/Interpreter/dynamic_cast_dict_unconditional_type_metadata.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // rdar://problem/28022201 exposed an ABI mismatch bug between the C++ code diff --git a/test/Interpreter/dynamic_cast_set_conditional_type_metadata.swift b/test/Interpreter/dynamic_cast_set_conditional_type_metadata.swift index 20bc51c91edf5..8bf16b35349e7 100644 --- a/test/Interpreter/dynamic_cast_set_conditional_type_metadata.swift +++ b/test/Interpreter/dynamic_cast_set_conditional_type_metadata.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // rdar://problem/28022201 exposed an ABI mismatch bug between the C++ code diff --git a/test/Interpreter/dynamic_cast_set_unconditional_type_metadata.swift b/test/Interpreter/dynamic_cast_set_unconditional_type_metadata.swift index b98515d4043a9..983ad7c1b54ed 100644 --- a/test/Interpreter/dynamic_cast_set_unconditional_type_metadata.swift +++ b/test/Interpreter/dynamic_cast_set_unconditional_type_metadata.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // rdar://problem/28022201 exposed an ABI mismatch bug between the C++ code diff --git a/test/Interpreter/dynamic_replacement.swift b/test/Interpreter/dynamic_replacement.swift index 426532a1951d5..bdd9093644b8e 100644 --- a/test/Interpreter/dynamic_replacement.swift +++ b/test/Interpreter/dynamic_replacement.swift @@ -100,6 +100,7 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: wasm import Module1 diff --git a/test/Interpreter/dynamic_replacement_multifile/main.swift b/test/Interpreter/dynamic_replacement_multifile/main.swift index e7734ff7b9b7d..be73f25bd4b85 100644 --- a/test/Interpreter/dynamic_replacement_multifile/main.swift +++ b/test/Interpreter/dynamic_replacement_multifile/main.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/main // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: swift_test_mode_optimize // UNSUPPORTED: swift_test_mode_optimize_size diff --git a/test/Interpreter/dynamic_replacement_protocol_self.swift b/test/Interpreter/dynamic_replacement_protocol_self.swift index f1e89910234ce..e861a6caa7f27 100644 --- a/test/Interpreter/dynamic_replacement_protocol_self.swift +++ b/test/Interpreter/dynamic_replacement_protocol_self.swift @@ -14,6 +14,7 @@ // if the linker is content. // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic diff --git a/test/Interpreter/dynamic_self.swift b/test/Interpreter/dynamic_self.swift index 9ee543de0f6d3..bc04471eb8f3d 100644 --- a/test/Interpreter/dynamic_self.swift +++ b/test/Interpreter/dynamic_self.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Test IR generation via execution for Self. diff --git a/test/Interpreter/element_archetype_captures.swift b/test/Interpreter/element_archetype_captures.swift index f92c021fd958c..5d7a4a6b638d7 100644 --- a/test/Interpreter/element_archetype_captures.swift +++ b/test/Interpreter/element_archetype_captures.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values func callee(x: X, t: T, u: U, v: V) -> (any P1, any P2, any P3, any P4) { diff --git a/test/Interpreter/enforce_exclusive_access.swift b/test/Interpreter/enforce_exclusive_access.swift index b8e81e8747823..210e399876bcc 100644 --- a/test/Interpreter/enforce_exclusive_access.swift +++ b/test/Interpreter/enforce_exclusive_access.swift @@ -4,6 +4,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: thread_safe_runtime // UNSUPPORTED: use_os_stdlib diff --git a/test/Interpreter/enum-nonexhaustivity.swift b/test/Interpreter/enum-nonexhaustivity.swift index ff123ca652b0f..f6ae6be34d7e7 100644 --- a/test/Interpreter/enum-nonexhaustivity.swift +++ b/test/Interpreter/enum-nonexhaustivity.swift @@ -9,6 +9,7 @@ // RUN: %target-codesign %t/main3 // RUN: %target-run %t/main3 // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/enum_resilience.swift b/test/Interpreter/enum_resilience.swift index bb95bf817224b..701e85d066364 100644 --- a/test/Interpreter/enum_resilience.swift +++ b/test/Interpreter/enum_resilience.swift @@ -39,6 +39,7 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/existential_member_accesses_self_assoctype.swift b/test/Interpreter/existential_member_accesses_self_assoctype.swift index 231156dde7013..c4b022f7624f4 100644 --- a/test/Interpreter/existential_member_accesses_self_assoctype.swift +++ b/test/Interpreter/existential_member_accesses_self_assoctype.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/extended_grapheme_cluster_literal.swift b/test/Interpreter/extended_grapheme_cluster_literal.swift index a4fc2c8a675d6..6d26565784472 100644 --- a/test/Interpreter/extended_grapheme_cluster_literal.swift +++ b/test/Interpreter/extended_grapheme_cluster_literal.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out.optimized // RUN: %target-run %t/a.out.optimized // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/function_metatypes.swift b/test/Interpreter/function_metatypes.swift index bf729dc5de6f0..8acc17c6c81fb 100644 --- a/test/Interpreter/function_metatypes.swift +++ b/test/Interpreter/function_metatypes.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values protocol ProtocolHasInOut { associatedtype Input diff --git a/test/Interpreter/global_resilience.swift b/test/Interpreter/global_resilience.swift index 65693229a3855..2e767b513e19b 100644 --- a/test/Interpreter/global_resilience.swift +++ b/test/Interpreter/global_resilience.swift @@ -23,6 +23,7 @@ // RUN: %target-run %t/main2 %t/%target-library-name(resilient_struct_wmo) %t/%target-library-name(resilient_global_wmo) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/import_parameter_pack_library.swift b/test/Interpreter/import_parameter_pack_library.swift index 991102eddbe3f..5234a2b68a5ec 100644 --- a/test/Interpreter/import_parameter_pack_library.swift +++ b/test/Interpreter/import_parameter_pack_library.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/main %t/%target-library-name(variadic_generic_library) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Interpreter/init_accessors.swift b/test/Interpreter/init_accessors.swift index d8e2ee7c2bc64..33d85ef2e493a 100644 --- a/test/Interpreter/init_accessors.swift +++ b/test/Interpreter/init_accessors.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-O) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values struct TestInit { var x: Int diff --git a/test/Interpreter/inlinable_init_accessors.swift b/test/Interpreter/inlinable_init_accessors.swift index 1a3bac3164bdd..a4da86be505bc 100644 --- a/test/Interpreter/inlinable_init_accessors.swift +++ b/test/Interpreter/inlinable_init_accessors.swift @@ -20,6 +20,7 @@ // RUN: %target-run %t/main.out %t/%target-library-name(Library) 2>&1 | %FileCheck %t/src/main.swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: remote_run || device_run diff --git a/test/Interpreter/keypath.swift b/test/Interpreter/keypath.swift index c2e9cc483b848..e361951110e41 100644 --- a/test/Interpreter/keypath.swift +++ b/test/Interpreter/keypath.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-feature -Xfrontend KeyPathWithMethodMembers) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_KeyPathWithMethodMembers // UNSUPPORTED: use_os_stdlib diff --git a/test/Interpreter/layout_reabstraction.swift b/test/Interpreter/layout_reabstraction.swift index 98a472dff9d9c..b5f551257e075 100644 --- a/test/Interpreter/layout_reabstraction.swift +++ b/test/Interpreter/layout_reabstraction.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values struct S {} struct Q {} diff --git a/test/Interpreter/layout_string_witnesses_dynamic.swift b/test/Interpreter/layout_string_witnesses_dynamic.swift index 54a789b6ab888..8800ae599b74a 100644 --- a/test/Interpreter/layout_string_witnesses_dynamic.swift +++ b/test/Interpreter/layout_string_witnesses_dynamic.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/main %t/%target-library-name(layout_string_witnesses_types) | %FileCheck %s --check-prefix=CHECK -check-prefix=CHECK-%target-os // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_LayoutStringValueWitnesses // REQUIRES: swift_feature_LayoutStringValueWitnessesInstantiation diff --git a/test/Interpreter/layout_string_witnesses_objc.swift b/test/Interpreter/layout_string_witnesses_objc.swift index 54c3f0564c5f7..75137488bc741 100644 --- a/test/Interpreter/layout_string_witnesses_objc.swift +++ b/test/Interpreter/layout_string_witnesses_objc.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/main %t/%target-library-name(layout_string_witnesses_types) | %FileCheck %s --check-prefix=CHECK // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // REQUIRES: swift_feature_LayoutStringValueWitnesses // REQUIRES: swift_feature_LayoutStringValueWitnessesInstantiation diff --git a/test/Interpreter/layout_string_witnesses_static.swift b/test/Interpreter/layout_string_witnesses_static.swift index 6487b9735c7b3..238d7a66590d6 100644 --- a/test/Interpreter/layout_string_witnesses_static.swift +++ b/test/Interpreter/layout_string_witnesses_static.swift @@ -11,6 +11,7 @@ // RUN: %target-run %t/main %t/%target-library-name(layout_string_witnesses_types) | %FileCheck %s --check-prefix=CHECK -check-prefix=CHECK-%target-os // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_LayoutStringValueWitnesses // Requires runtime functions added in Swift 5.9. diff --git a/test/Interpreter/move_expr_moveonly_partial_consumption_addr.swift b/test/Interpreter/move_expr_moveonly_partial_consumption_addr.swift index daf2139372691..707f9f95dcdea 100644 --- a/test/Interpreter/move_expr_moveonly_partial_consumption_addr.swift +++ b/test/Interpreter/move_expr_moveonly_partial_consumption_addr.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-parse-as-library -O -Xfrontend -sil-verify-all) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @main struct App { static func main() { test1((1,2,3,4)) diff --git a/test/Interpreter/moveonly.swift b/test/Interpreter/moveonly.swift index eea72577edca6..a36446c4120a2 100644 --- a/test/Interpreter/moveonly.swift +++ b/test/Interpreter/moveonly.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/moveonly_bufferview.swift b/test/Interpreter/moveonly_bufferview.swift index b120ee9ac8788..222548ac41a64 100644 --- a/test/Interpreter/moveonly_bufferview.swift +++ b/test/Interpreter/moveonly_bufferview.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values public struct BufferView: ~Copyable { var ptr: UnsafeBufferPointer diff --git a/test/Interpreter/moveonly_deinit_autoclosure.swift b/test/Interpreter/moveonly_deinit_autoclosure.swift index 3c89be208b8a5..dff2ffea39b0c 100644 --- a/test/Interpreter/moveonly_deinit_autoclosure.swift +++ b/test/Interpreter/moveonly_deinit_autoclosure.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values internal func _myPrecondition( _ body: @autoclosure () -> Bool diff --git a/test/Interpreter/moveonly_existentials.swift b/test/Interpreter/moveonly_existentials.swift index f3ab9465e8036..35fb59a6dabef 100644 --- a/test/Interpreter/moveonly_existentials.swift +++ b/test/Interpreter/moveonly_existentials.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/bin | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values protocol Boopable: ~Copyable { func boop() diff --git a/test/Interpreter/moveonly_foundation.swift b/test/Interpreter/moveonly_foundation.swift index aa43c9cd77f34..c42d8bfae78c2 100644 --- a/test/Interpreter/moveonly_foundation.swift +++ b/test/Interpreter/moveonly_foundation.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: foundation import StdlibUnittest diff --git a/test/Interpreter/moveonly_generics.swift b/test/Interpreter/moveonly_generics.swift index 5dfcc1b7a882b..ea014e4a951ba 100644 --- a/test/Interpreter/moveonly_generics.swift +++ b/test/Interpreter/moveonly_generics.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: asserts // UNSUPPORTED: use_os_stdlib diff --git a/test/Interpreter/moveonly_linkedlist.swift b/test/Interpreter/moveonly_linkedlist.swift index d3be7489ef4bd..eed53c2614a8e 100644 --- a/test/Interpreter/moveonly_linkedlist.swift +++ b/test/Interpreter/moveonly_linkedlist.swift @@ -3,6 +3,7 @@ // RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values /// A class that we use as a box to store the memory for one of our linked list /// nodes. It is on purpose fileprivate since it is an implementation detail of diff --git a/test/Interpreter/moveonly_linkedlist_2_simple.swift b/test/Interpreter/moveonly_linkedlist_2_simple.swift index 55f7d13d336d3..f23a9cfd4b1aa 100644 --- a/test/Interpreter/moveonly_linkedlist_2_simple.swift +++ b/test/Interpreter/moveonly_linkedlist_2_simple.swift @@ -9,6 +9,7 @@ // RUN: %target-run-simple-swift(-O -parse-as-library -enable-builtin-module -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // CHECK-IR-NOT: @"$sBpWV" diff --git a/test/Interpreter/moveonly_reflection.swift b/test/Interpreter/moveonly_reflection.swift index 209b1a3d3b0d5..0edff761868cb 100644 --- a/test/Interpreter/moveonly_reflection.swift +++ b/test/Interpreter/moveonly_reflection.swift @@ -10,6 +10,7 @@ // RUN: %target-run not --crash %t/crash // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Simulators and devices don't appear to have the 'not' binary in their PATH // to handle tests that intentionally crash such as this. diff --git a/test/Interpreter/moveonly_resilient_capture_during_deinit.swift b/test/Interpreter/moveonly_resilient_capture_during_deinit.swift index c9f30a5918859..fd7829e7522d3 100644 --- a/test/Interpreter/moveonly_resilient_capture_during_deinit.swift +++ b/test/Interpreter/moveonly_resilient_capture_during_deinit.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import moveonly_resilient_type diff --git a/test/Interpreter/moveonly_resilient_deinit_on_throw.swift b/test/Interpreter/moveonly_resilient_deinit_on_throw.swift index 73bdc6c3837e8..82fc46f619200 100644 --- a/test/Interpreter/moveonly_resilient_deinit_on_throw.swift +++ b/test/Interpreter/moveonly_resilient_deinit_on_throw.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // CHECK: starting diff --git a/test/Interpreter/moveonly_swiftskell.swift b/test/Interpreter/moveonly_swiftskell.swift index 08838cc8cfb64..0e5d344d25c63 100644 --- a/test/Interpreter/moveonly_swiftskell.swift +++ b/test/Interpreter/moveonly_swiftskell.swift @@ -22,6 +22,7 @@ // RUN: %target-run %t/Opt %t/%target-library-name(Swiftskell) | %FileCheck %s --implicit-check-not destroy // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_SuppressedAssociatedTypes // Temporarily disable for back-deployment (rdar://128544927) diff --git a/test/Interpreter/named_opaque_result_types.swift b/test/Interpreter/named_opaque_result_types.swift index c5db8c6386e0d..96f2d7a94dc21 100644 --- a/test/Interpreter/named_opaque_result_types.swift +++ b/test/Interpreter/named_opaque_result_types.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *) dynamic func lazyMapCollection(_ collection: C, body: @escaping (C.Element) -> T) diff --git a/test/Interpreter/objc_class_properties.swift b/test/Interpreter/objc_class_properties.swift index 541f0f20a637c..c2c84c4006b85 100644 --- a/test/Interpreter/objc_class_properties.swift +++ b/test/Interpreter/objc_class_properties.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/objc_class_resilience.swift b/test/Interpreter/objc_class_resilience.swift index d8c8131c1b1ee..13935f8050147 100644 --- a/test/Interpreter/objc_class_resilience.swift +++ b/test/Interpreter/objc_class_resilience.swift @@ -13,6 +13,7 @@ // RUN: %target-run %t/main %t/%target-library-name(resilient_struct) %t/%target-library-name(resilient_objc_class) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import StdlibUnittest diff --git a/test/Interpreter/objc_class_resilience_stubs.swift b/test/Interpreter/objc_class_resilience_stubs.swift index f84c042523a59..f1620ed2e00f6 100644 --- a/test/Interpreter/objc_class_resilience_stubs.swift +++ b/test/Interpreter/objc_class_resilience_stubs.swift @@ -12,6 +12,7 @@ // RUN: %target-run %t/main %t/%target-library-name(resilient_struct) %t/%target-library-name(resilient_objc_class) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // REQUIRES: swift_stable_abi diff --git a/test/Interpreter/objc_runtime_visible.swift b/test/Interpreter/objc_runtime_visible.swift index af1376c40f046..a2eb85a8bbf42 100644 --- a/test/Interpreter/objc_runtime_visible.swift +++ b/test/Interpreter/objc_runtime_visible.swift @@ -8,6 +8,7 @@ // RUN: %target-run %t/main %t/libobjc_runtime_visible.dylib // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // CHECK-NOT: HiddenClass diff --git a/test/Interpreter/objc_throwing_initializers.swift b/test/Interpreter/objc_throwing_initializers.swift index f8cf7dfd0e24f..2a18b8851ff78 100644 --- a/test/Interpreter/objc_throwing_initializers.swift +++ b/test/Interpreter/objc_throwing_initializers.swift @@ -16,6 +16,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/opaque_return_type_protocol_ext.swift b/test/Interpreter/opaque_return_type_protocol_ext.swift index 1a9671bb758f3..2bcff6baf6593 100644 --- a/test/Interpreter/opaque_return_type_protocol_ext.swift +++ b/test/Interpreter/opaque_return_type_protocol_ext.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *) protocol P { diff --git a/test/Interpreter/polymorphic_builtins.swift b/test/Interpreter/polymorphic_builtins.swift index c1002655ef74b..2c9ee5c0eadb7 100644 --- a/test/Interpreter/polymorphic_builtins.swift +++ b/test/Interpreter/polymorphic_builtins.swift @@ -26,6 +26,7 @@ // RUN: %target-run %t/a.out %t/%target-library-name(mysimd) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Builtin import StdlibUnittest diff --git a/test/Interpreter/property_wrappers.swift b/test/Interpreter/property_wrappers.swift index 5517f178c154a..af0cda3c8979c 100644 --- a/test/Interpreter/property_wrappers.swift +++ b/test/Interpreter/property_wrappers.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values protocol Observed: AnyObject { func broadcastValueWillChange(newValue: T) diff --git a/test/Interpreter/protocol_extensions.swift b/test/Interpreter/protocol_extensions.swift index e657f1e0f4e3d..8989c7cff7d0f 100644 --- a/test/Interpreter/protocol_extensions.swift +++ b/test/Interpreter/protocol_extensions.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/protocol_initializers.swift b/test/Interpreter/protocol_initializers.swift index cfdd42bfa8977..ede2c9d6fcd8c 100644 --- a/test/Interpreter/protocol_initializers.swift +++ b/test/Interpreter/protocol_initializers.swift @@ -12,6 +12,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/protocol_initializers_class.swift b/test/Interpreter/protocol_initializers_class.swift index a5ce65f2e8d08..b0e31f6d55d24 100644 --- a/test/Interpreter/protocol_initializers_class.swift +++ b/test/Interpreter/protocol_initializers_class.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-swift-version 5) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/raw_layout.swift b/test/Interpreter/raw_layout.swift index d0cbbbbb4fea3..16f99bbfe6cc5 100644 --- a/test/Interpreter/raw_layout.swift +++ b/test/Interpreter/raw_layout.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(-enable-experimental-feature RawLayout) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_RawLayout @_rawLayout(like: T) diff --git a/test/Interpreter/raw_layout_deinit.swift b/test/Interpreter/raw_layout_deinit.swift index b1e5ecce04154..2136ae37f1f17 100644 --- a/test/Interpreter/raw_layout_deinit.swift +++ b/test/Interpreter/raw_layout_deinit.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_RawLayout @_rawLayout(size: 16, alignment: 16) diff --git a/test/Interpreter/rdar80847020.swift b/test/Interpreter/rdar80847020.swift index d343858328771..d4e8bbba535df 100644 --- a/test/Interpreter/rdar80847020.swift +++ b/test/Interpreter/rdar80847020.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // REQUIRES: concurrency diff --git a/test/Interpreter/resilient_metadata_cycles.swift b/test/Interpreter/resilient_metadata_cycles.swift index 33d279250a7c0..668012574c1a8 100644 --- a/test/Interpreter/resilient_metadata_cycles.swift +++ b/test/Interpreter/resilient_metadata_cycles.swift @@ -12,6 +12,7 @@ // RUN: %target-run %t/main %t/%target-library-name(resilient_struct) %t/%target-library-name(resilient_class) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/sendable_erasure_to_any_in_preconcurrency.swift b/test/Interpreter/sendable_erasure_to_any_in_preconcurrency.swift index afb97c02b76e0..7b0f3dfdc0208 100644 --- a/test/Interpreter/sendable_erasure_to_any_in_preconcurrency.swift +++ b/test/Interpreter/sendable_erasure_to_any_in_preconcurrency.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Interpreter/static_keypaths.swift b/test/Interpreter/static_keypaths.swift index fb4565dd5bf1c..10676e3402cc6 100644 --- a/test/Interpreter/static_keypaths.swift +++ b/test/Interpreter/static_keypaths.swift @@ -19,6 +19,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // REQUIRES: swift_feature_KeyPathWithMethodMembers diff --git a/test/Interpreter/string_literal.swift b/test/Interpreter/string_literal.swift index 63e24b50f07c1..219aa8a1fd0b8 100644 --- a/test/Interpreter/string_literal.swift +++ b/test/Interpreter/string_literal.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out.optimized // RUN: %target-run %t/a.out.optimized // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/struct_resilience.swift b/test/Interpreter/struct_resilience.swift index fc79367aa47b0..6345105919141 100644 --- a/test/Interpreter/struct_resilience.swift +++ b/test/Interpreter/struct_resilience.swift @@ -17,6 +17,7 @@ // RUN: %target-run %t/main2 %t/%target-library-name(resilient_struct_wmo) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/switch_resilience.swift b/test/Interpreter/switch_resilience.swift index efd1d948112b9..87bae718e0f79 100644 --- a/test/Interpreter/switch_resilience.swift +++ b/test/Interpreter/switch_resilience.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/switch_resilience %t/%target-library-name(resilient_struct) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import resilient_struct diff --git a/test/Interpreter/synthesized_extension_conformances.swift b/test/Interpreter/synthesized_extension_conformances.swift index 520896d780e98..6a91208f9264b 100644 --- a/test/Interpreter/synthesized_extension_conformances.swift +++ b/test/Interpreter/synthesized_extension_conformances.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Interpreter/testable_key_path.swift b/test/Interpreter/testable_key_path.swift index 7bcb16dceb178..c99bfe67dfbff 100644 --- a/test/Interpreter/testable_key_path.swift +++ b/test/Interpreter/testable_key_path.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @testable import Module diff --git a/test/Interpreter/throwing_initializers.swift b/test/Interpreter/throwing_initializers.swift index 9292ac7e192b9..b45ec0b709f60 100644 --- a/test/Interpreter/throwing_initializers.swift +++ b/test/Interpreter/throwing_initializers.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-swift-version 5) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/typed_throws_abi.swift b/test/Interpreter/typed_throws_abi.swift index c78d8e09e82f2..2268a1f3245ae 100644 --- a/test/Interpreter/typed_throws_abi.swift +++ b/test/Interpreter/typed_throws_abi.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/main %t/%target-library-name(TypedThrowsABI) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import TypedThrowsABI diff --git a/test/Interpreter/unicode_scalar_literal.swift b/test/Interpreter/unicode_scalar_literal.swift index 797397ca29b8b..0a6f230bc72b9 100644 --- a/test/Interpreter/unicode_scalar_literal.swift +++ b/test/Interpreter/unicode_scalar_literal.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out.optimized // RUN: %target-run %t/a.out.optimized // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/variadic_generic_captures.swift b/test/Interpreter/variadic_generic_captures.swift index 039c845abb16b..984b56f26c95c 100644 --- a/test/Interpreter/variadic_generic_captures.swift +++ b/test/Interpreter/variadic_generic_captures.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/variadic_generic_captures_2.swift b/test/Interpreter/variadic_generic_captures_2.swift index 0c42b5a511caf..4653e975fe17b 100644 --- a/test/Interpreter/variadic_generic_captures_2.swift +++ b/test/Interpreter/variadic_generic_captures_2.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/variadic_generic_conformances.swift b/test/Interpreter/variadic_generic_conformances.swift index 81c7d6c794383..a02cd743c1a89 100644 --- a/test/Interpreter/variadic_generic_conformances.swift +++ b/test/Interpreter/variadic_generic_conformances.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-target %target-swift-5.9-abi-triple) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Interpreter/variadic_generic_func_types.swift b/test/Interpreter/variadic_generic_func_types.swift index 3c7614ba87cd6..21122151f891f 100644 --- a/test/Interpreter/variadic_generic_func_types.swift +++ b/test/Interpreter/variadic_generic_func_types.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/variadic_generic_opaque_type.swift b/test/Interpreter/variadic_generic_opaque_type.swift index 551360684d399..569e6ae058e51 100644 --- a/test/Interpreter/variadic_generic_opaque_type.swift +++ b/test/Interpreter/variadic_generic_opaque_type.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/main.out %t/%target-library-name(variadic_generic_opaque_type_other) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This test needs a Swift 5.9 runtime or newer. // UNSUPPORTED: back_deployment_runtime diff --git a/test/Interpreter/variadic_generic_tuples.swift b/test/Interpreter/variadic_generic_tuples.swift index bc480d0f9f389..922cd9c085796 100644 --- a/test/Interpreter/variadic_generic_tuples.swift +++ b/test/Interpreter/variadic_generic_tuples.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Interpreter/variadic_generic_types.swift b/test/Interpreter/variadic_generic_types.swift index c950b1d235eee..1d6d75c46be1e 100644 --- a/test/Interpreter/variadic_generic_types.swift +++ b/test/Interpreter/variadic_generic_types.swift @@ -2,6 +2,7 @@ // RUN: %target-run-simple-swift(-target %target-swift-5.9-abi-triple) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Interpreter/weak_objc.swift b/test/Interpreter/weak_objc.swift index 08131601a32ea..6a4f8361bf44e 100644 --- a/test/Interpreter/weak_objc.swift +++ b/test/Interpreter/weak_objc.swift @@ -2,6 +2,7 @@ // RUN: %target-codesign %t-main // RUN: %target-run %t-main | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/Macros/init_accessor.swift b/test/Macros/init_accessor.swift index c4bb0cfc7fc84..ee519c0cfe31c 100644 --- a/test/Macros/init_accessor.swift +++ b/test/Macros/init_accessor.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/main // REQUIRES: swift_swift_parser, executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values @attached(peer, names: named(_value), named(_$value)) macro Wrapped() = #externalMacro(module: "MacroDefinition", diff --git a/test/Macros/macro_expand_attributes.swift b/test/Macros/macro_expand_attributes.swift index 517d86c3aa1a8..242029056364d 100644 --- a/test/Macros/macro_expand_attributes.swift +++ b/test/Macros/macro_expand_attributes.swift @@ -1,4 +1,5 @@ // REQUIRES: swift_swift_parser, executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %empty-directory(%t) // RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroDefinition) -module-name=MacroDefinition %S/Inputs/syntax_macro_definitions.swift -g -no-toolchain-stdlib-rpath diff --git a/test/Macros/macro_expand_body.swift b/test/Macros/macro_expand_body.swift index ebd86736c3646..46ded9f5ccbf3 100644 --- a/test/Macros/macro_expand_body.swift +++ b/test/Macros/macro_expand_body.swift @@ -1,5 +1,7 @@ // REQUIRES: swift_swift_parser, executable_test, asserts, concurrency // REQUIRES: swift_feature_PreambleMacros +// XFAIL: swift_test_mode_optimize_none_with_opaque_values + // RUN: %empty-directory(%t) // RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroDefinition) -module-name=MacroDefinition %S/Inputs/syntax_macro_definitions.swift -g -no-toolchain-stdlib-rpath -swift-version 5 diff --git a/test/PCMacro/pc_and_log.swift b/test/PCMacro/pc_and_log.swift index 2c19c8e318389..dcf3966504c5f 100644 --- a/test/PCMacro/pc_and_log.swift +++ b/test/PCMacro/pc_and_log.swift @@ -5,6 +5,7 @@ // RUN: %target-codesign %t/main // RUN: %target-run %t/main | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME: rdar://problem/30234450 PCMacro tests fail on linux in optimized mode // UNSUPPORTED: OS=linux-gnu diff --git a/test/Parse/type_parameter_packs_executable.swift b/test/Parse/type_parameter_packs_executable.swift index be40b282b4fe8..d6c23c32a1c02 100644 --- a/test/Parse/type_parameter_packs_executable.swift +++ b/test/Parse/type_parameter_packs_executable.swift @@ -1,4 +1,5 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %target-run-simple-swift import StdlibUnittest diff --git a/test/PlaygroundTransform/closure_parameters.swift b/test/PlaygroundTransform/closure_parameters.swift index 87d69dd6d089f..cfe8e9edda398 100644 --- a/test/PlaygroundTransform/closure_parameters.swift +++ b/test/PlaygroundTransform/closure_parameters.swift @@ -7,6 +7,7 @@ // RUN: %target-playground-build-run-swift(-swift-version 6 -Xfrontend -pc-macro -Xfrontend -playground -Xfrontend -debugger-support) | %FileCheck %s // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import PlaygroundSupport diff --git a/test/Prototypes/Algorithms.swift b/test/Prototypes/Algorithms.swift index 1a3f5c7f7ba32..9b5a3c370dbe3 100644 --- a/test/Prototypes/Algorithms.swift +++ b/test/Prototypes/Algorithms.swift @@ -14,6 +14,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values #if USE_STDLIBUNITTEST import Swift diff --git a/test/Prototypes/CollectionTransformers.swift b/test/Prototypes/CollectionTransformers.swift index e8d04cfc7b28a..926d68514f761 100644 --- a/test/Prototypes/CollectionTransformers.swift +++ b/test/Prototypes/CollectionTransformers.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME: This test runs very slowly on watchOS. // UNSUPPORTED: OS=watchos diff --git a/test/Prototypes/GenericDispatch.swift b/test/Prototypes/GenericDispatch.swift index a6804ffa11557..35a6d3ee01f72 100644 --- a/test/Prototypes/GenericDispatch.swift +++ b/test/Prototypes/GenericDispatch.swift @@ -17,6 +17,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // CHECK: testing... print("testing...") diff --git a/test/Prototypes/Hypoarray.swift b/test/Prototypes/Hypoarray.swift index 909ce3dacec40..65ed2d5a11c26 100644 --- a/test/Prototypes/Hypoarray.swift +++ b/test/Prototypes/Hypoarray.swift @@ -14,6 +14,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/Prototypes/IntroSort.swift b/test/Prototypes/IntroSort.swift index 64c7d249ef6fc..6d56721a845d5 100644 --- a/test/Prototypes/IntroSort.swift +++ b/test/Prototypes/IntroSort.swift @@ -14,6 +14,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Note: This introsort was the standard library's sort algorithm until Swift 5. diff --git a/test/Prototypes/PatternMatching.swift b/test/Prototypes/PatternMatching.swift index 7383ba8466687..2c1ac56832c35 100644 --- a/test/Prototypes/PatternMatching.swift +++ b/test/Prototypes/PatternMatching.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values //===--- Niceties ---------------------------------------------------------===// extension Collection { diff --git a/test/Prototypes/Result.swift b/test/Prototypes/Result.swift index 320e1eea30df4..fb02312f7db50 100644 --- a/test/Prototypes/Result.swift +++ b/test/Prototypes/Result.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values public enum Result { case Success(Value) diff --git a/test/Prototypes/Result_future.swift b/test/Prototypes/Result_future.swift index 4911836a5924f..a4dc840fce0fe 100644 --- a/test/Prototypes/Result_future.swift +++ b/test/Prototypes/Result_future.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-simple-swift(-Xfrontend -prespecialize-generic-metadata -target %module-target-future) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: VENDOR=apple || OS=linux-gnu // UNSUPPORTED: CPU=i386 && OS=ios diff --git a/test/Prototypes/UnfairLock.swift b/test/Prototypes/UnfairLock.swift index c544a2091251c..3684be430dd1d 100644 --- a/test/Prototypes/UnfairLock.swift +++ b/test/Prototypes/UnfairLock.swift @@ -5,6 +5,7 @@ // REQUIRES: OS=macosx // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_BuiltinModule // REQUIRES: swift_feature_RawLayout diff --git a/test/Prototypes/UnicodeDecoders.swift b/test/Prototypes/UnicodeDecoders.swift index cbfc2ffd19191..eae68bae835db 100644 --- a/test/Prototypes/UnicodeDecoders.swift +++ b/test/Prototypes/UnicodeDecoders.swift @@ -13,6 +13,7 @@ // RUN: %target-codesign %t // RUN: %target-run %t // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Benchmarking: use the following script with your swift-4-enabled swiftc. // The BASELINE timings come from the existing standard library Codecs diff --git a/test/Prototypes/Vector.swift b/test/Prototypes/Vector.swift index a01e11db0e885..089790083c7d7 100644 --- a/test/Prototypes/Vector.swift +++ b/test/Prototypes/Vector.swift @@ -2,6 +2,7 @@ // RUN: %target-swift-frontend -target %module-target-future -enable-experimental-feature BuiltinModule -disable-experimental-parser-round-trip -emit-module %s -o %t/Vector.swiftmodule // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_BuiltinModule // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Runtime/associated_type_demangle_inherited.swift b/test/Runtime/associated_type_demangle_inherited.swift index 757d2865b2388..245fabfea95d2 100644 --- a/test/Runtime/associated_type_demangle_inherited.swift +++ b/test/Runtime/associated_type_demangle_inherited.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Swift import StdlibUnittest diff --git a/test/Runtime/bitwise-borrowable-generics.swift b/test/Runtime/bitwise-borrowable-generics.swift index 249c0271b719a..d3f94fc48f33e 100644 --- a/test/Runtime/bitwise-borrowable-generics.swift +++ b/test/Runtime/bitwise-borrowable-generics.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(-enable-experimental-feature RawLayout) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_RawLayout // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Runtime/check_create_type.swift b/test/Runtime/check_create_type.swift index d87ee5232f0c9..31f15a7af6e30 100644 --- a/test/Runtime/check_create_type.swift +++ b/test/Runtime/check_create_type.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: CPU=arm64e // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/custom_rr_abi.swift b/test/Runtime/custom_rr_abi.swift index 8ed5cf7eda048..490f56496b8f5 100644 --- a/test/Runtime/custom_rr_abi.swift +++ b/test/Runtime/custom_rr_abi.swift @@ -3,6 +3,7 @@ // REQUIRES: CPU=arm64 || CPU=arm64e // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Runtime/optional_try.swift b/test/Runtime/optional_try.swift index 4825aea049647..b97ab2f267fbc 100644 --- a/test/Runtime/optional_try.swift +++ b/test/Runtime/optional_try.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift -sil-verify-all | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values enum Bad: Error { case err diff --git a/test/Runtime/protocol_self_same_type_extension.swift b/test/Runtime/protocol_self_same_type_extension.swift index c35bd2689ee20..3670648344bbc 100644 --- a/test/Runtime/protocol_self_same_type_extension.swift +++ b/test/Runtime/protocol_self_same_type_extension.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Runtime/superclass_constraint_metadata_objc_superclass.swift b/test/Runtime/superclass_constraint_metadata_objc_superclass.swift index e72c51fbcf0b8..9cb845332cb4b 100644 --- a/test/Runtime/superclass_constraint_metadata_objc_superclass.swift +++ b/test/Runtime/superclass_constraint_metadata_objc_superclass.swift @@ -8,6 +8,7 @@ // REQUIRES: objc_interop // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_objc_superclass_future.swift b/test/Runtime/superclass_constraint_metadata_objc_superclass_future.swift index 699b3291ec263..515a890303088 100644 --- a/test/Runtime/superclass_constraint_metadata_objc_superclass_future.swift +++ b/test/Runtime/superclass_constraint_metadata_objc_superclass_future.swift @@ -8,6 +8,7 @@ // REQUIRES: objc_interop // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass.swift b/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass.swift index d2d14e4cc418e..212dd7addc1d2 100644 --- a/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass.swift +++ b/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass.swift @@ -9,6 +9,7 @@ // REQUIRES: objc_interop // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass_future.swift b/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass_future.swift index 8f005ec410050..b18b2f89eafa0 100644 --- a/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass_future.swift +++ b/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_intermediate_swift_subclass_future.swift @@ -9,6 +9,7 @@ // REQUIRES: objc_interop // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_subclass.swift b/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_subclass.swift index edce9b2446fac..7f2af65a4aee4 100644 --- a/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_subclass.swift +++ b/test/Runtime/superclass_constraint_metadata_objc_superclass_objc_subclass.swift @@ -9,6 +9,7 @@ // REQUIRES: objc_interop // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_resilient_superclass.swift b/test/Runtime/superclass_constraint_metadata_resilient_superclass.swift index bb2b1b1c5758c..568cb3347eb22 100644 --- a/test/Runtime/superclass_constraint_metadata_resilient_superclass.swift +++ b/test/Runtime/superclass_constraint_metadata_resilient_superclass.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/main | %FileCheck %S/Inputs/print_subclass/main.swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_resilient_superclass2.swift b/test/Runtime/superclass_constraint_metadata_resilient_superclass2.swift index 4a3b32a454dec..6ef05c89585f8 100644 --- a/test/Runtime/superclass_constraint_metadata_resilient_superclass2.swift +++ b/test/Runtime/superclass_constraint_metadata_resilient_superclass2.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/main | %FileCheck %S/Inputs/print_subclass/main.swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib diff --git a/test/Runtime/superclass_constraint_metadata_resilient_superclass2_future.swift b/test/Runtime/superclass_constraint_metadata_resilient_superclass2_future.swift index 222fd44a9b093..4564dd6a24fe6 100644 --- a/test/Runtime/superclass_constraint_metadata_resilient_superclass2_future.swift +++ b/test/Runtime/superclass_constraint_metadata_resilient_superclass2_future.swift @@ -10,6 +10,7 @@ // RUN: %target-run %t/main | %FileCheck %S/Inputs/print_subclass/main.swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/Runtime/superclass_constraint_metadata_resilient_superclass_future.swift b/test/Runtime/superclass_constraint_metadata_resilient_superclass_future.swift index d857c512fbe7b..6a98761acc8d7 100644 --- a/test/Runtime/superclass_constraint_metadata_resilient_superclass_future.swift +++ b/test/Runtime/superclass_constraint_metadata_resilient_superclass_future.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/main | %FileCheck %S/Inputs/print_subclass/main.swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime diff --git a/test/SILGen/objc_error_fast_path.swift b/test/SILGen/objc_error_fast_path.swift index 586901dcaa6ca..a8a176c4a9b28 100644 --- a/test/SILGen/objc_error_fast_path.swift +++ b/test/SILGen/objc_error_fast_path.swift @@ -2,6 +2,7 @@ // RUN: split-file %s %t --leading-lines // REQUIRES: objc_interop // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values /// Optimization active: public import // RUN: %target-build-swift-dylib(%t/%target-library-name(Lib)) \ diff --git a/test/SILOptimizer/dse_with_union.swift b/test/SILOptimizer/dse_with_union.swift index 9e36836ddfb8e..1b340746b9242 100644 --- a/test/SILOptimizer/dse_with_union.swift +++ b/test/SILOptimizer/dse_with_union.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Check that EscapeAnalysis does not mess up with a union. diff --git a/test/SILOptimizer/existential_box_elimination.swift b/test/SILOptimizer/existential_box_elimination.swift index d9fe6481deda3..a6a69596edf47 100644 --- a/test/SILOptimizer/existential_box_elimination.swift +++ b/test/SILOptimizer/existential_box_elimination.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values final class LifetimeTracking { diff --git a/test/SILOptimizer/isolated_conformances.swift b/test/SILOptimizer/isolated_conformances.swift index 2c5e66d0942e7..fc8fe3888953b 100644 --- a/test/SILOptimizer/isolated_conformances.swift +++ b/test/SILOptimizer/isolated_conformances.swift @@ -7,6 +7,7 @@ // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency_runtime // REQUIRES: OS=macosx || OS=linux-gnu diff --git a/test/SILOptimizer/let_properties_opts_runtime.swift b/test/SILOptimizer/let_properties_opts_runtime.swift index 2fa8e899e35fc..a9a70deca5a25 100644 --- a/test/SILOptimizer/let_properties_opts_runtime.swift +++ b/test/SILOptimizer/let_properties_opts_runtime.swift @@ -6,6 +6,7 @@ // RUN: %target-codesign %t/a.out2 // RUN: %target-run %t/a.out2 | %FileCheck %s -check-prefix=CHECK-OUTPUT // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Check that in optimized builds the compiler generates correct code for // initializations of let properties, which is assigned multiple times inside diff --git a/test/SILOptimizer/optimize_keypath.swift b/test/SILOptimizer/optimize_keypath.swift index 6af9bd93cc538..1e786d21db6e2 100644 --- a/test/SILOptimizer/optimize_keypath.swift +++ b/test/SILOptimizer/optimize_keypath.swift @@ -14,6 +14,7 @@ // RUN: %target-run %t/a6.out | %FileCheck %s -check-prefix=CHECK-OUTPUT // REQUIRES: executable_test,optimized_stdlib +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: CPU=arm64 || CPU=x86_64 // REQUIRES: swift_in_compiler diff --git a/test/SILOptimizer/silcombine_runtime_crash.swift b/test/SILOptimizer/silcombine_runtime_crash.swift index 239ff87cb644b..7147ceb085519 100644 --- a/test/SILOptimizer/silcombine_runtime_crash.swift +++ b/test/SILOptimizer/silcombine_runtime_crash.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This is an end-to-end test for https://github.com/apple/swift/issues/52073. diff --git a/test/SILOptimizer/static_inline_arrays.swift b/test/SILOptimizer/static_inline_arrays.swift index cdac4c4d07f66..213031906691d 100644 --- a/test/SILOptimizer/static_inline_arrays.swift +++ b/test/SILOptimizer/static_inline_arrays.swift @@ -7,6 +7,7 @@ // RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT // REQUIRES: executable_test,optimized_stdlib +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx || OS=linux-gnu || OS=windows-msvc // UNSUPPORTED: back_deployment_runtime diff --git a/test/Sanitizers/tsan/objc_async.swift b/test/Sanitizers/tsan/objc_async.swift index 8d57b33bd50f9..560ddce3b8f0e 100644 --- a/test/Sanitizers/tsan/objc_async.swift +++ b/test/Sanitizers/tsan/objc_async.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/objc_async | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: concurrency // REQUIRES: objc_interop // REQUIRES: tsan_runtime diff --git a/test/Serialization/opaque_with_availability_cross_module.swift b/test/Serialization/opaque_with_availability_cross_module.swift index 3a9716181ee8a..431bdbed595ef 100644 --- a/test/Serialization/opaque_with_availability_cross_module.swift +++ b/test/Serialization/opaque_with_availability_cross_module.swift @@ -5,6 +5,7 @@ // REQUIRES: OS=macosx && (CPU=x86_64 || CPU=arm64) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This requires executable tests to be run on the same machine as the compiler, // as it links with a dylib that it doesn't arrange to get uploaded to remote executors. diff --git a/test/StringProcessing/Runtime/regex_basic.swift b/test/StringProcessing/Runtime/regex_basic.swift index 498894cd1dff6..9318fad6ef922 100644 --- a/test/StringProcessing/Runtime/regex_basic.swift +++ b/test/StringProcessing/Runtime/regex_basic.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-Xfrontend -enable-bare-slash-regex) // REQUIRES: swift_swift_parser,string_processing,executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/TypeRoundTrip/round-trip.swift b/test/TypeRoundTrip/round-trip.swift index bbea5c9881db0..17d9219b5f500 100644 --- a/test/TypeRoundTrip/round-trip.swift +++ b/test/TypeRoundTrip/round-trip.swift @@ -11,6 +11,7 @@ // RUN: %target-run %t/round-trip | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: shell // REQUIRES: remote_mirror // UNSUPPORTED: use_os_stdlib diff --git a/test/Volatile/volatile-exec.swift b/test/Volatile/volatile-exec.swift index 1e249170122af..87b3817b4ea41 100644 --- a/test/Volatile/volatile-exec.swift +++ b/test/Volatile/volatile-exec.swift @@ -1,6 +1,7 @@ // RUN: %target-run-simple-swift(-parse-as-library -enable-experimental-feature Volatile) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: volatile // REQUIRES: swift_feature_Volatile diff --git a/test/attr/attr_backDeployed_evolution.swift b/test/attr/attr_backDeployed_evolution.swift index 3b1458bf470a5..a2aa5d7b0255d 100644 --- a/test/attr/attr_backDeployed_evolution.swift +++ b/test/attr/attr_backDeployed_evolution.swift @@ -30,6 +30,7 @@ // // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx // The deployment targets and availability versions hardcoded into this test diff --git a/test/attr/attr_implements_serial.swift b/test/attr/attr_implements_serial.swift index 944e40d5bd032..4de04a1763c42 100644 --- a/test/attr/attr_implements_serial.swift +++ b/test/attr/attr_implements_serial.swift @@ -6,6 +6,7 @@ // RUN: %target-codesign %t/%target-library-name(AttrImplFP) // RUN: %target-run %t/a.out %t/%target-library-name(AttrImplFP) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // This test just checks that the lookup-table entries for @_implements are // also written-to and read-from serialized .swiftmodules diff --git a/test/attr/attr_originally_definedin_backward_compatibility.swift b/test/attr/attr_originally_definedin_backward_compatibility.swift index 9d274a7e722e6..441163c1551fd 100644 --- a/test/attr/attr_originally_definedin_backward_compatibility.swift +++ b/test/attr/attr_originally_definedin_backward_compatibility.swift @@ -1,4 +1,5 @@ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: OS=macosx || OS=ios // UNSUPPORTED: DARWIN_SIMULATOR=ios // rdar://problem/65399527 diff --git a/test/embedded/managed-buffer2.swift b/test/embedded/managed-buffer2.swift index ddb16c3ea7dc9..11fbbaf21a8c1 100644 --- a/test/embedded/managed-buffer2.swift +++ b/test/embedded/managed-buffer2.swift @@ -4,6 +4,7 @@ // REQUIRES: swift_in_compiler // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: optimized_stdlib // REQUIRES: OS=macosx || OS=linux-gnu // REQUIRES: swift_feature_Embedded diff --git a/test/embedded/sensitive.swift b/test/embedded/sensitive.swift index 4e895f3ee5258..0405c862a78a8 100644 --- a/test/embedded/sensitive.swift +++ b/test/embedded/sensitive.swift @@ -4,6 +4,7 @@ // REQUIRES: swift_in_compiler // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: optimized_stdlib // REQUIRES: OS=macosx || OS=linux-gnu // REQUIRES: swift_feature_Embedded diff --git a/test/embedded/set-runtime.swift b/test/embedded/set-runtime.swift index 54dc96086bce7..822d61be22b71 100644 --- a/test/embedded/set-runtime.swift +++ b/test/embedded/set-runtime.swift @@ -4,6 +4,7 @@ // REQUIRES: swift_in_compiler // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: optimized_stdlib // REQUIRES: OS=macosx // REQUIRES: swift_feature_Embedded diff --git a/test/embedded/synchronization.swift b/test/embedded/synchronization.swift index d2a2fb7ffbd93..645c1f6049474 100644 --- a/test/embedded/synchronization.swift +++ b/test/embedded/synchronization.swift @@ -3,6 +3,7 @@ // REQUIRES: swift_in_compiler // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: optimized_stdlib // REQUIRES: synchronization // REQUIRES: swift_feature_Embedded diff --git a/test/embedded/volatile-exec.swift b/test/embedded/volatile-exec.swift index 7f58b64b22b84..23c395b5fa892 100644 --- a/test/embedded/volatile-exec.swift +++ b/test/embedded/volatile-exec.swift @@ -2,6 +2,7 @@ // REQUIRES: swift_in_compiler // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: optimized_stdlib // REQUIRES: volatile // REQUIRES: swift_feature_Embedded diff --git a/test/expr/closure/implicit_weak_capture.swift b/test/expr/closure/implicit_weak_capture.swift index 08475c21d0eeb..7b17d3d415b5a 100644 --- a/test/expr/closure/implicit_weak_capture.swift +++ b/test/expr/closure/implicit_weak_capture.swift @@ -2,6 +2,7 @@ // REQUIRES: concurrency // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // rdar://102155748 // UNSUPPORTED: back_deployment_runtime diff --git a/test/lit.cfg b/test/lit.cfg index ca1316248a2a5..5b8813c44b507 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -925,6 +925,11 @@ if swift_test_mode == 'optimize_none': # optimize mode for a cpu. config.available_features.add("swift_test_mode_optimize_none_" + run_cpu) swift_execution_tests_extra_flags = '' +elif swift_test_mode == 'optimize_none_with_opaque_values': + config.available_features.add("executable_test") + config.limit_to_features.add("executable_test") + config.available_features.add("swift_test_mode_optimize_none_with_opaque_values") + swift_execution_tests_extra_flags = '-Xfrontend -enable-sil-opaque-values' elif swift_test_mode == 'optimize_none_with_implicit_dynamic': config.available_features.add("executable_test") config.limit_to_features.add("executable_test") diff --git a/test/multifile/protocol-conformance-redundant.swift b/test/multifile/protocol-conformance-redundant.swift index 0eba7ae78583a..00c83381767af 100644 --- a/test/multifile/protocol-conformance-redundant.swift +++ b/test/multifile/protocol-conformance-redundant.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/main %t/%target-library-name(Def) %t/%target-library-name(Ext) 2> >(%FileCheck %s -check-prefix=CHECK-STDERR) | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // XFAIL: OS=windows-msvc import StdlibUnittest diff --git a/test/stdlib/AllocRounding.swift b/test/stdlib/AllocRounding.swift index 3bf2b5d2a1adc..161b8b5315c6a 100644 --- a/test/stdlib/AllocRounding.swift +++ b/test/stdlib/AllocRounding.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/AnyHashableCasts.swift.gyb b/test/stdlib/AnyHashableCasts.swift.gyb index 96bcc2caab85b..62247aff498dd 100644 --- a/test/stdlib/AnyHashableCasts.swift.gyb +++ b/test/stdlib/AnyHashableCasts.swift.gyb @@ -8,6 +8,7 @@ // RUN: %target-codesign %t.out.optimized // RUN: %line-directive %t/AnyHashableCasts.swift -- %target-run %t.out.optimized // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/ArrayBuffer_CopyContents.swift b/test/stdlib/ArrayBuffer_CopyContents.swift index c1b8723c8d799..035655997c35a 100644 --- a/test/stdlib/ArrayBuffer_CopyContents.swift +++ b/test/stdlib/ArrayBuffer_CopyContents.swift @@ -12,6 +12,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_stdlib_asserts // REQUIRES: foundation diff --git a/test/stdlib/AutoreleasingUnsafeMutablePointer.swift b/test/stdlib/AutoreleasingUnsafeMutablePointer.swift index 83636f1a499fb..f0a69cb7fd3fb 100644 --- a/test/stdlib/AutoreleasingUnsafeMutablePointer.swift +++ b/test/stdlib/AutoreleasingUnsafeMutablePointer.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import StdlibUnittest diff --git a/test/stdlib/BridgeIdAsAny.swift.gyb b/test/stdlib/BridgeIdAsAny.swift.gyb index cbd9590f8da44..50ca09d65bc30 100644 --- a/test/stdlib/BridgeIdAsAny.swift.gyb +++ b/test/stdlib/BridgeIdAsAny.swift.gyb @@ -5,6 +5,7 @@ // RUN: %target-codesign %t.out // RUN: %target-run %t.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // // REQUIRES: objc_interop diff --git a/test/stdlib/BridgeNonVerbatim.swift b/test/stdlib/BridgeNonVerbatim.swift index e4ff7a00c163c..4deb56b8bf1ac 100644 --- a/test/stdlib/BridgeNonVerbatim.swift +++ b/test/stdlib/BridgeNonVerbatim.swift @@ -18,6 +18,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // // REQUIRES: objc_interop diff --git a/test/stdlib/BridgedArrayNonContiguous.swift b/test/stdlib/BridgedArrayNonContiguous.swift index 292de96dc8785..30e6a8eeefafd 100644 --- a/test/stdlib/BridgedArrayNonContiguous.swift +++ b/test/stdlib/BridgedArrayNonContiguous.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift -enable-experimental-feature LifetimeDependence // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // REQUIRES: swift_feature_LifetimeDependence diff --git a/test/stdlib/BridgedObjectDebuggerSupport.swift b/test/stdlib/BridgedObjectDebuggerSupport.swift index 7990abba8b1e2..b97243b18eddc 100644 --- a/test/stdlib/BridgedObjectDebuggerSupport.swift +++ b/test/stdlib/BridgedObjectDebuggerSupport.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test, objc_interop +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Foundation import StdlibUnittest diff --git a/test/stdlib/Character.swift b/test/stdlib/Character.swift index 71b2b4ea6d144..320b902c0d113 100644 --- a/test/stdlib/Character.swift +++ b/test/stdlib/Character.swift @@ -1,5 +1,6 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: freestanding import StdlibUnittest diff --git a/test/stdlib/CharacterRecognizer.swift b/test/stdlib/CharacterRecognizer.swift index befb79a2da205..37803af8f06bb 100644 --- a/test/stdlib/CharacterRecognizer.swift +++ b/test/stdlib/CharacterRecognizer.swift @@ -2,6 +2,7 @@ // RUN: %target-run-stdlib-swift %S/Inputs/ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // REQUIRES: optimized_stdlib diff --git a/test/stdlib/Diffing.swift b/test/stdlib/Diffing.swift index 29ed765ce2680..c22392253501f 100644 --- a/test/stdlib/Diffing.swift +++ b/test/stdlib/Diffing.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Swift import StdlibUnittest diff --git a/test/stdlib/DispatchData.swift b/test/stdlib/DispatchData.swift index 51fb5dfefa7ef..ff9d755b0723b 100644 --- a/test/stdlib/DispatchData.swift +++ b/test/stdlib/DispatchData.swift @@ -2,6 +2,7 @@ // RUN: %target-build-swift -swift-version 4 %s %import-libdispatch -o %t/a.out-4 && %target-codesign %t/a.out-4 && %target-run %t/a.out-4 // RUN: %target-build-swift -swift-version 4.2 %s %import-libdispatch -o %t/a.out-4.2 && %target-codesign %t/a.out-4.2 && %target-run %t/a.out-4.2 // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: libdispatch import Dispatch diff --git a/test/stdlib/ErrorBridged.swift b/test/stdlib/ErrorBridged.swift index 2ebe954a33170..9ec0e70922ca4 100644 --- a/test/stdlib/ErrorBridged.swift +++ b/test/stdlib/ErrorBridged.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/ErrorBridged // RUN: %target-run %t/ErrorBridged // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import StdlibUnittest diff --git a/test/stdlib/FlattenDistanceFromTo.swift b/test/stdlib/FlattenDistanceFromTo.swift index fca6ab95b857f..9e781c78975f2 100644 --- a/test/stdlib/FlattenDistanceFromTo.swift +++ b/test/stdlib/FlattenDistanceFromTo.swift @@ -12,6 +12,7 @@ // // RUN: %target-run-simple-swift(-parse-as-library) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // END. // //===----------------------------------------------------------------------===// diff --git a/test/stdlib/InlineArray.swift b/test/stdlib/InlineArray.swift index 1892ba7de4d53..b5750c54a122d 100644 --- a/test/stdlib/InlineArray.swift +++ b/test/stdlib/InlineArray.swift @@ -15,6 +15,7 @@ // RUN: -parse-as-library \ // RUN: ) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: swift_feature_ValueGenerics // UNSUPPORTED: use_os_stdlib // END. diff --git a/test/stdlib/Int128.swift b/test/stdlib/Int128.swift index ec694a8527006..a98d06ed6283e 100644 --- a/test/stdlib/Int128.swift +++ b/test/stdlib/Int128.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: use_os_stdlib, back_deployment_runtime import StdlibUnittest diff --git a/test/stdlib/Integers.swift.gyb b/test/stdlib/Integers.swift.gyb index d9218f82c0717..0f9f34f3866c3 100644 --- a/test/stdlib/Integers.swift.gyb +++ b/test/stdlib/Integers.swift.gyb @@ -15,6 +15,7 @@ // RUN: %line-directive %t/Integers.swift -- %target-codesign %t/a.out // RUN: %line-directive %t/Integers.swift -- %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME: this test runs forever on iOS arm64 // REQUIRES: OS=macosx diff --git a/test/stdlib/KVOKeyPaths.swift b/test/stdlib/KVOKeyPaths.swift index 6360c3515c0ad..339cf55b4bbb6 100644 --- a/test/stdlib/KVOKeyPaths.swift +++ b/test/stdlib/KVOKeyPaths.swift @@ -4,6 +4,7 @@ // RUN: %target-run %t/a.out | grep 'check-prefix' > %t/prefix-option // RUN: %target-run %t/a.out | %FileCheck -check-prefix=CHECK `cat %t/prefix-option` %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/stdlib/KeyPath.swift b/test/stdlib/KeyPath.swift index fb3b0c1e5510c..c08d05e486089 100644 --- a/test/stdlib/KeyPath.swift +++ b/test/stdlib/KeyPath.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: freestanding @_spi(ObservableRerootKeyPath) diff --git a/test/stdlib/KeyPathMultiFile.swift b/test/stdlib/KeyPathMultiFile.swift index c69a82b32eede..5cefbee042c53 100644 --- a/test/stdlib/KeyPathMultiFile.swift +++ b/test/stdlib/KeyPathMultiFile.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/KeyPathMultiModule.swift b/test/stdlib/KeyPathMultiModule.swift index 947c40553c24d..b3b9beb0a3692 100644 --- a/test/stdlib/KeyPathMultiModule.swift +++ b/test/stdlib/KeyPathMultiModule.swift @@ -14,6 +14,7 @@ // RUN: %target-run %t/a.out.fragile // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // Freestanding stdlib is built with -experimental-hermetic-seal-at-link which doesn't allow -enable-library-evolution // UNSUPPORTED: freestanding diff --git a/test/stdlib/ManagedBuffer.swift b/test/stdlib/ManagedBuffer.swift index 5697971e47729..c978b6c71e851 100644 --- a/test/stdlib/ManagedBuffer.swift +++ b/test/stdlib/ManagedBuffer.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // XFAIL: OS=openbsd import StdlibUnittest diff --git a/test/stdlib/Mirror.swift b/test/stdlib/Mirror.swift index a5a22d2888184..b6cf7e23c4570 100644 --- a/test/stdlib/Mirror.swift +++ b/test/stdlib/Mirror.swift @@ -23,6 +23,7 @@ // RUN: %target-run %t/Mirror // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: shell // REQUIRES: reflection diff --git a/test/stdlib/MirrorWithPacks.swift b/test/stdlib/MirrorWithPacks.swift index c3496e52f58c0..458744c8e4c55 100644 --- a/test/stdlib/MirrorWithPacks.swift +++ b/test/stdlib/MirrorWithPacks.swift @@ -16,6 +16,7 @@ // RUN: %target-run %t/Mirror // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: shell // REQUIRES: reflection diff --git a/test/stdlib/NSKeyedArchival.swift b/test/stdlib/NSKeyedArchival.swift index dd85c77cd9296..de41a6de42b16 100644 --- a/test/stdlib/NSKeyedArchival.swift +++ b/test/stdlib/NSKeyedArchival.swift @@ -8,6 +8,7 @@ // // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/stdlib/NSSetAPI.swift b/test/stdlib/NSSetAPI.swift index 39fdfc64ac5fb..c9a41869063ee 100644 --- a/test/stdlib/NSSetAPI.swift +++ b/test/stdlib/NSSetAPI.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/stdlib/NSValueBridging.swift.gyb b/test/stdlib/NSValueBridging.swift.gyb index a16f0c7c36cf1..59dafe3bdf6c7 100644 --- a/test/stdlib/NSValueBridging.swift.gyb +++ b/test/stdlib/NSValueBridging.swift.gyb @@ -15,6 +15,7 @@ // RUN: %target-codesign %t.out // RUN: %target-run %t.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // // REQUIRES: objc_interop // UNSUPPORTED: OS=watchos diff --git a/test/stdlib/OSLogExecutionTest.swift b/test/stdlib/OSLogExecutionTest.swift index 3fe204ccaf9ed..8aa85db07e6b9 100644 --- a/test/stdlib/OSLogExecutionTest.swift +++ b/test/stdlib/OSLogExecutionTest.swift @@ -7,6 +7,7 @@ // RUN: %target-codesign %t/OSLogExecutionTest // RUN: %target-run %t/OSLogExecutionTest // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: foundation // // REQUIRES: VENDOR=apple diff --git a/test/stdlib/Observation/Observable.swift b/test/stdlib/Observation/Observable.swift index 2f05994060f75..24a1513baf5bc 100644 --- a/test/stdlib/Observation/Observable.swift +++ b/test/stdlib/Observation/Observable.swift @@ -1,4 +1,5 @@ // REQUIRES: swift_swift_parser, executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library -enable-experimental-feature Macros -Xfrontend -plugin-path -Xfrontend %swift-plugin-dir) diff --git a/test/stdlib/Observation/ObservableDidSetWillSet.swift b/test/stdlib/Observation/ObservableDidSetWillSet.swift index 2981ae8a3b3ec..3564425987a54 100644 --- a/test/stdlib/Observation/ObservableDidSetWillSet.swift +++ b/test/stdlib/Observation/ObservableDidSetWillSet.swift @@ -1,4 +1,5 @@ // REQUIRES: swift_swift_parser, executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -enable-experimental-feature Macros -Xfrontend -plugin-path -Xfrontend %swift-plugin-dir) | %FileCheck %s diff --git a/test/stdlib/Optional.swift b/test/stdlib/Optional.swift index 2c128c9870c60..24372fea67a96 100644 --- a/test/stdlib/Optional.swift +++ b/test/stdlib/Optional.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection import StdlibUnittest diff --git a/test/stdlib/OptionalBridge.swift b/test/stdlib/OptionalBridge.swift index 4ac4a1c5b7d50..f486245916d15 100644 --- a/test/stdlib/OptionalBridge.swift +++ b/test/stdlib/OptionalBridge.swift @@ -12,6 +12,7 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Foundation diff --git a/test/stdlib/Reflection.swift b/test/stdlib/Reflection.swift index c24a77dac4a88..f55d42b481d26 100644 --- a/test/stdlib/Reflection.swift +++ b/test/stdlib/Reflection.swift @@ -3,6 +3,7 @@ // RUN: %target-codesign %t/a.out // RUN: %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection // diff --git a/test/stdlib/Reflection_objc.swift b/test/stdlib/Reflection_objc.swift index 319565035f1d7..b576f20c9e42a 100644 --- a/test/stdlib/Reflection_objc.swift +++ b/test/stdlib/Reflection_objc.swift @@ -9,6 +9,7 @@ // RUN: %target-run %t/a.out %S/Inputs/shuffle.jpg | %FileCheck %s // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop // UNSUPPORTED: use_os_stdlib diff --git a/test/stdlib/Result.swift b/test/stdlib/Result.swift index 770762019d422..6b83a94ce27e4 100644 --- a/test/stdlib/Result.swift +++ b/test/stdlib/Result.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest import Swift diff --git a/test/stdlib/Runtime.swift.gyb b/test/stdlib/Runtime.swift.gyb index 7846a5bc49138..c44b806559cbf 100644 --- a/test/stdlib/Runtime.swift.gyb +++ b/test/stdlib/Runtime.swift.gyb @@ -5,6 +5,7 @@ // RUN: %target-codesign %t.out // RUN: %target-run %t.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection // REQUIRES: swift_feature_Extern diff --git a/test/stdlib/RuntimeObjC.swift b/test/stdlib/RuntimeObjC.swift index 4cbdf5d13fea3..f65614fcd765e 100644 --- a/test/stdlib/RuntimeObjC.swift +++ b/test/stdlib/RuntimeObjC.swift @@ -5,6 +5,7 @@ // RUN: %target-codesign %t.out // RUN: %target-run %t.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import Swift diff --git a/test/stdlib/RuntimeRetroactiveConformance.swift b/test/stdlib/RuntimeRetroactiveConformance.swift index 0062f380bb196..afe4010bfe7af 100644 --- a/test/stdlib/RuntimeRetroactiveConformance.swift +++ b/test/stdlib/RuntimeRetroactiveConformance.swift @@ -6,6 +6,7 @@ // RUN: %target-run %t/a.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection import A diff --git a/test/stdlib/SmallString.swift b/test/stdlib/SmallString.swift index 482bb563143a9..63974a1419aa3 100644 --- a/test/stdlib/SmallString.swift +++ b/test/stdlib/SmallString.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: CPU=arm64 || CPU=x86_64 // diff --git a/test/stdlib/Span/ArraySpanProperties.swift b/test/stdlib/Span/ArraySpanProperties.swift index 3baeddb28f06a..b5e905bd3f3da 100644 --- a/test/stdlib/Span/ArraySpanProperties.swift +++ b/test/stdlib/Span/ArraySpanProperties.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/Span/BridgedStringUTF8ViewSpanTests.swift b/test/stdlib/Span/BridgedStringUTF8ViewSpanTests.swift index a779e430e1012..b16c3b1e3ed1a 100644 --- a/test/stdlib/Span/BridgedStringUTF8ViewSpanTests.swift +++ b/test/stdlib/Span/BridgedStringUTF8ViewSpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop import StdlibUnittest diff --git a/test/stdlib/Span/MutableRawSpanTests.swift b/test/stdlib/Span/MutableRawSpanTests.swift index e15736c28d7ed..89e2e4af01041 100644 --- a/test/stdlib/Span/MutableRawSpanTests.swift +++ b/test/stdlib/Span/MutableRawSpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/Span/MutableSpanTests.swift b/test/stdlib/Span/MutableSpanTests.swift index 80cbe34edfb26..9831795a10461 100644 --- a/test/stdlib/Span/MutableSpanTests.swift +++ b/test/stdlib/Span/MutableSpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/Span/OutputRawSpanTests.swift b/test/stdlib/Span/OutputRawSpanTests.swift index 2bb6de3058f7b..583110fa6aa54 100644 --- a/test/stdlib/Span/OutputRawSpanTests.swift +++ b/test/stdlib/Span/OutputRawSpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/Span/OutputSpanTests.swift b/test/stdlib/Span/OutputSpanTests.swift index 09d4b50cdce0f..a545026d95d66 100644 --- a/test/stdlib/Span/OutputSpanTests.swift +++ b/test/stdlib/Span/OutputSpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/Span/RawSpanTests.swift b/test/stdlib/Span/RawSpanTests.swift index cb5ce25a341d9..4ea0924dceee4 100644 --- a/test/stdlib/Span/RawSpanTests.swift +++ b/test/stdlib/Span/RawSpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/Span/SpanBytesProperty.swift b/test/stdlib/Span/SpanBytesProperty.swift index 1e22cbcf68455..86fcac386d84e 100644 --- a/test/stdlib/Span/SpanBytesProperty.swift +++ b/test/stdlib/Span/SpanBytesProperty.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Swift import StdlibUnittest diff --git a/test/stdlib/Span/SpanTests.swift b/test/stdlib/Span/SpanTests.swift index 0505ff17d8fc4..a99823c20609a 100644 --- a/test/stdlib/Span/SpanTests.swift +++ b/test/stdlib/Span/SpanTests.swift @@ -13,6 +13,7 @@ // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/StdlibUnittestOverrelease.swift b/test/stdlib/StdlibUnittestOverrelease.swift index f76203e4ac12f..6e0404cbef77d 100644 --- a/test/stdlib/StdlibUnittestOverrelease.swift +++ b/test/stdlib/StdlibUnittestOverrelease.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: foundation import Foundation diff --git a/test/stdlib/Strideable.swift b/test/stdlib/Strideable.swift index 1e847a2c1effb..f20947e4f54b1 100644 --- a/test/stdlib/Strideable.swift +++ b/test/stdlib/Strideable.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // import StdlibUnittest diff --git a/test/stdlib/StringAPI.swift b/test/stdlib/StringAPI.swift index fb33db9b53ee7..b7eab17afc94f 100644 --- a/test/stdlib/StringAPI.swift +++ b/test/stdlib/StringAPI.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection // These tests verify fixes in >5.9 Swift, and will diff --git a/test/stdlib/StringAPICString.swift b/test/stdlib/StringAPICString.swift index 54005a294afcd..915692c51576a 100644 --- a/test/stdlib/StringAPICString.swift +++ b/test/stdlib/StringAPICString.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // // Tests for the non-Foundation CString-oriented API of String diff --git a/test/stdlib/StringBridge.swift b/test/stdlib/StringBridge.swift index 6754af6bf116a..c3e0f1ec07d56 100644 --- a/test/stdlib/StringBridge.swift +++ b/test/stdlib/StringBridge.swift @@ -5,6 +5,7 @@ // RUN: %target-run %t.out // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: objc_interop diff --git a/test/stdlib/StringCompatibility.swift b/test/stdlib/StringCompatibility.swift index 74417388d99be..db3a8f0753df4 100644 --- a/test/stdlib/StringCompatibility.swift +++ b/test/stdlib/StringCompatibility.swift @@ -2,6 +2,7 @@ // RUN: %target-build-swift %s -o %t/a.out4 -swift-version 4 && %target-codesign %t/a.out4 && %target-run %t/a.out4 // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection import StdlibUnittest diff --git a/test/stdlib/StringCreate.swift b/test/stdlib/StringCreate.swift index 7ccd8b793dd26..094cb545fba12 100644 --- a/test/stdlib/StringCreate.swift +++ b/test/stdlib/StringCreate.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // rdar://91405760 // UNSUPPORTED: use_os_stdlib, back_deployment_runtime diff --git a/test/stdlib/StringDeconstruction.swift b/test/stdlib/StringDeconstruction.swift index 7e3f5d9103548..54e17834eaad4 100644 --- a/test/stdlib/StringDeconstruction.swift +++ b/test/stdlib/StringDeconstruction.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // UNSUPPORTED: freestanding import StdlibUnittest diff --git a/test/stdlib/StringIndex.swift b/test/stdlib/StringIndex.swift index 6f20537a72c7b..45921fa291de1 100644 --- a/test/stdlib/StringIndex.swift +++ b/test/stdlib/StringIndex.swift @@ -7,6 +7,7 @@ // 5.7 so that we can test new behavior even if the SDK we're using predates it. // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: optimized_stdlib // UNSUPPORTED: freestanding diff --git a/test/stdlib/Synchronization/Atomics/LockFreeSingleConsumerStack.swift b/test/stdlib/Synchronization/Atomics/LockFreeSingleConsumerStack.swift index f58126bbdd534..cc487cd7a1b66 100644 --- a/test/stdlib/Synchronization/Atomics/LockFreeSingleConsumerStack.swift +++ b/test/stdlib/Synchronization/Atomics/LockFreeSingleConsumerStack.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(%import-libdispatch) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: libdispatch // REQUIRES: synchronization diff --git a/test/stdlib/Synchronization/Mutex/LockSingleConsumerStack.swift b/test/stdlib/Synchronization/Mutex/LockSingleConsumerStack.swift index 0d2fe551de2ed..c3e23ee500a3e 100644 --- a/test/stdlib/Synchronization/Mutex/LockSingleConsumerStack.swift +++ b/test/stdlib/Synchronization/Mutex/LockSingleConsumerStack.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift(%import-libdispatch) // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: libdispatch // REQUIRES: synchronization diff --git a/test/stdlib/UTF8EncodingErrorTests.swift b/test/stdlib/UTF8EncodingErrorTests.swift index de6893a1ebab1..7249c63fc1c80 100644 --- a/test/stdlib/UTF8EncodingErrorTests.swift +++ b/test/stdlib/UTF8EncodingErrorTests.swift @@ -1,6 +1,7 @@ // RUN: %target-run-stdlib-swift %S/Inputs/ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // FIXME: this test is currently broken diff --git a/test/stdlib/UTF8SpanIteratorTests.swift b/test/stdlib/UTF8SpanIteratorTests.swift index 8b79471470419..f2ee8d68e777e 100644 --- a/test/stdlib/UTF8SpanIteratorTests.swift +++ b/test/stdlib/UTF8SpanIteratorTests.swift @@ -1,6 +1,7 @@ // RUN: %target-run-stdlib-swift(-enable-experimental-feature LifetimeDependence) %S/Inputs/ // REQUIRES: swift_feature_LifetimeDependence // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Swift import StdlibUnittest diff --git a/test/stdlib/UTF8SpanQueriesComparisons.swift b/test/stdlib/UTF8SpanQueriesComparisons.swift index b37bfbc2024eb..8578b5b013a88 100644 --- a/test/stdlib/UTF8SpanQueriesComparisons.swift +++ b/test/stdlib/UTF8SpanQueriesComparisons.swift @@ -1,6 +1,7 @@ // RUN: %target-run-stdlib-swift %S/Inputs/ // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Swift import StdlibUnittest diff --git a/test/stdlib/Unicode.swift b/test/stdlib/Unicode.swift index 1ad73b3ab6a7c..4807442189a69 100644 --- a/test/stdlib/Unicode.swift +++ b/test/stdlib/Unicode.swift @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// // RUN: %target-run-stdlib-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import Swift import StdlibUnittest diff --git a/test/stdlib/Unmanaged.swift b/test/stdlib/Unmanaged.swift index be5a224863191..0ac795143ead5 100644 --- a/test/stdlib/Unmanaged.swift +++ b/test/stdlib/Unmanaged.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swift // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/test/stdlib/UnsafePointer.swift.gyb b/test/stdlib/UnsafePointer.swift.gyb index 08b84a61c4e40..d05af2e05b3eb 100644 --- a/test/stdlib/UnsafePointer.swift.gyb +++ b/test/stdlib/UnsafePointer.swift.gyb @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swiftgyb // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values // REQUIRES: reflection import StdlibUnittest diff --git a/test/stdlib/UnsafeRawPointer.swift b/test/stdlib/UnsafeRawPointer.swift index 9ea691d45917c..463f484ff9e5f 100644 --- a/test/stdlib/UnsafeRawPointer.swift +++ b/test/stdlib/UnsafeRawPointer.swift @@ -1,5 +1,6 @@ // RUN: %target-run-simple-swiftgyb // REQUIRES: executable_test +// XFAIL: swift_test_mode_optimize_none_with_opaque_values import StdlibUnittest diff --git a/utils/build-presets.ini b/utils/build-presets.ini index e91da676fc9ae..82b41ca2fdd16 100644 --- a/utils/build-presets.ini +++ b/utils/build-presets.ini @@ -689,9 +689,6 @@ build-subdir=buildbot_incremental lto -[preset: ncgenerics,smoketest=macosx] -mixin-preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx -build-subdir=buildbot_incremental [preset: buildbot_incremental,tools=RA,llvm-only] build-subdir=buildbot_incremental_llvmonly @@ -1857,6 +1854,10 @@ skip-test-tvos-host # Run the SIL verifier after each transform when building swift files sil-verify-all-macos-only +# Run a subset of the test suite with -enable-sil-opaque-values +# until it's enabled by default (rdar://24065053) +test-optimize-none-with-opaque-values + # Don't run host tests for iOS, tvOS and watchOS platforms to make the build # faster. skip-test-ios-host diff --git a/utils/build_swift/build_swift/driver_arguments.py b/utils/build_swift/build_swift/driver_arguments.py index 6a62e11b47bad..9bc6ba6127904 100644 --- a/utils/build_swift/build_swift/driver_arguments.py +++ b/utils/build_swift/build_swift/driver_arguments.py @@ -203,6 +203,9 @@ def _apply_default_arguments(args): if args.test_optimize_none_with_implicit_dynamic: args.test = True + if args.test_optimize_none_with_opaque_values: + args.test = True + # If none of tests specified skip swift stdlib test on all platforms if not args.test and not args.validation_test and not args.long_test: args.test_linux = False @@ -1143,6 +1146,12 @@ def create_argument_parser(): help='run the test suite in optimize none with implicit dynamic' 'mode too (implies --test)') + # NOTE: this mode is meant to aid the bring-up of opaque values + # and once its enabled by default, we can remove this. + option('--test-optimize-none-with-opaque-values', toggle_true, + help='run the executable tests again, compiling them with ' + '-enable-sil-opaque-values (implies --test)') + option('--long-test', toggle_true, help='run the long test suite') diff --git a/utils/build_swift/tests/build_swift/test_driver_arguments.py b/utils/build_swift/tests/build_swift/test_driver_arguments.py index 0c89b252dae5c..5103be88b949b 100644 --- a/utils/build_swift/tests/build_swift/test_driver_arguments.py +++ b/utils/build_swift/tests/build_swift/test_driver_arguments.py @@ -605,6 +605,11 @@ def test_implied_defaults_test_optimize_none_with_implicit_dynamic(self): ['--test-optimize-none-with-implicit-dynamic']) self.assertTrue(namespace.test) + def test_implied_defaults_test_optimize_none_with_opaque_values(self): + namespace = self.parse_default_args( + ['--test-optimize-none-with-opaque-values']) + self.assertTrue(namespace.test) + def test_implied_defaults_skip_all_tests(self): namespace = self.parse_default_args([ '--test', '0', diff --git a/utils/build_swift/tests/expected_options.py b/utils/build_swift/tests/expected_options.py index be2939b7e343e..8e272f60dd6f2 100644 --- a/utils/build_swift/tests/expected_options.py +++ b/utils/build_swift/tests/expected_options.py @@ -313,6 +313,7 @@ 'test_linux_static': False, 'test_optimize_for_size': None, 'test_optimize_none_with_implicit_dynamic': None, + 'test_optimize_none_with_opaque_values': False, 'test_optimized': None, 'test_osx': False, 'test_paths': [], @@ -544,6 +545,8 @@ class BuildScriptImplOption(_BaseOption): SetOption('-s', dest='test_optimize_for_size', value=True), SetOption('-y', dest='test_optimize_none_with_implicit_dynamic', value=True), + SetOption('--test-optimize-none-with-opaque-values', + dest='test_optimize_none_with_opaque_values', value=True), SetOption('-t', dest='test', value=True), SetOption('-a', dest='assertions', value=True), @@ -707,6 +710,7 @@ class BuildScriptImplOption(_BaseOption): EnableOption('--test'), EnableOption('--test-optimize-for-size'), EnableOption('--test-optimize-none-with-implicit-dynamic'), + EnableOption('--test-optimize-none-with-opaque-values'), EnableOption('--test-optimized'), EnableOption('--tvos'), EnableOption('--validation-test'), diff --git a/utils/swift_build_support/swift_build_support/host_specific_configuration.py b/utils/swift_build_support/swift_build_support/host_specific_configuration.py index 5d37027ce0c5c..28988757a44ed 100644 --- a/utils/swift_build_support/swift_build_support/host_specific_configuration.py +++ b/utils/swift_build_support/swift_build_support/host_specific_configuration.py @@ -215,6 +215,11 @@ def __init__(self, host_target, args, stage_dependent_args=None): self.swift_test_run_targets.append( "check-swift{}-optimize_none_with_implicit_dynamic-{}" .format(subset_suffix, name)) + if args.test_optimize_none_with_opaque_values and \ + not test_host_only: + self.swift_test_run_targets.append( + "check-swift{}-optimize_none_with_opaque_values-{}" + .format(subset_suffix, name)) # Only pull in these flags when cross-compiling with # --cross-compile-hosts.