Skip to content

Commit 0094470

Browse files
authored
Merge pull request #58647 from rxwei/autodiff-disable-os-runtime-tests
[AutoDiff] Disable tests on `use_os_stdlib` or `back_deployment_runtime`
2 parents 273a550 + b9fed62 commit 0094470

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

test/AutoDiff/stdlib/lit.local.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# AutoDiff is not shipped in any OS and does not support backdeployment
2+
if 'use_os_stdlib' in config.available_features or \
3+
'back_deployment_runtime' in config.available_features:
4+
config.unsupported = True

test/AutoDiff/stdlib/simd.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// REQUIRES: executable_test
33

44
// Would fail due to unavailability of swift_autoDiffCreateLinearMapContext.
5-
// UNSUPPORTED: use_os_stdlib
6-
// UNSUPPORTED: back_deployment_runtime
75

86
import _Differentiation
97
import StdlibUnittest

test/AutoDiff/validation-test/address_only_tangentvector.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// REQUIRES: executable_test
33

44
// Would fail due to unavailability of swift_autoDiffCreateLinearMapContext.
5-
// UNSUPPORTED: use_os_stdlib
6-
// UNSUPPORTED: back_deployment_runtime
75

86
import StdlibUnittest
97
import DifferentiationUnittest

test/AutoDiff/validation-test/array.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// REQUIRES: executable_test
44

55
// Would fail due to unavailability of swift_autoDiffCreateLinearMapContext.
6-
// UNSUPPORTED: use_os_stdlib
7-
// UNSUPPORTED: back_deployment_runtime
86

97
import StdlibUnittest
108
import _Differentiation

test/AutoDiff/validation-test/inout_parameters.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// REQUIRES: executable_test
33

44
// Would fail due to unavailability of swift_autoDiffCreateLinearMapContext.
5-
// UNSUPPORTED: use_os_stdlib
6-
// UNSUPPORTED: back_deployment_runtime
75

86
// `inout` parameter differentiation tests.
97

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# AutoDiff is not shipped in any OS and does not support backdeployment
2+
if 'use_os_stdlib' in config.available_features or \
3+
'back_deployment_runtime' in config.available_features:
4+
config.unsupported = True

0 commit comments

Comments
 (0)