Skip to content

Commit 297564f

Browse files
authored
Merge pull request #79747 from xymus/fix-145934269
Test/SILGen: Fix device support for test objc_error_fast_path.swift
2 parents f6924ee + 1af5422 commit 297564f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/SILGen/objc_error_fast_path.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
// RUN: %t/optimized.swift -module-name Lib \
99
// RUN: -emit-module -emit-module-path %t/Lib.swiftmodule \
1010
// RUN: -swift-version 5 -enable-library-evolution -O
11+
// RUN: %target-codesign %t/%target-library-name(Lib)
1112
// RUN: %target-build-swift %t/main.swift -o %t/main -I%t -lLib -L%t -O
1213
// RUN: %target-codesign %t/main
13-
// RUN: %target-run %t/main | %FileCheck %s
14+
// RUN: %target-run %t/main %t/%target-library-name(Lib) | %FileCheck %s
1415

1516
/// Ensure the client has the optimization we're testing here.
1617
// RUN: %target-swift-frontend -typecheck -emit-silgen %t/Lib.swiftmodule > %t/Lib.sil
@@ -22,9 +23,10 @@
2223
// RUN: %t/non-optimized.swift -module-name Lib \
2324
// RUN: -emit-module -emit-module-path %t/Lib.swiftmodule \
2425
// RUN: -swift-version 5 -enable-library-evolution -O
26+
// RUN: %target-codesign %t/%target-library-name(Lib)
2527
// RUN: %target-build-swift %t/main.swift -o %t/main -I%t -lLib -L%t -O
2628
// RUN: %target-codesign %t/main
27-
// RUN: %target-run %t/main | %FileCheck %s
29+
// RUN: %target-run %t/main %t/%target-library-name(Lib) | %FileCheck %s
2830

2931
/// Ensure the client doesn't have the optimization we're testing here.
3032
// RUN: %target-swift-frontend -typecheck -emit-silgen %t/main.swift -I%t -O > %t/Lib.sil

0 commit comments

Comments
 (0)