From 1af5422734012ce8cc5cc0bb7aef61206e0c8c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 3 Mar 2025 09:59:26 -0800 Subject: [PATCH] SILGen: Fix device support for test objc_error_fast_path.swift Fix the test objc_error_fast_path.swift to support running on devices. rdar://145934269 --- test/SILGen/objc_error_fast_path.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/SILGen/objc_error_fast_path.swift b/test/SILGen/objc_error_fast_path.swift index d629fd114d080..586901dcaa6ca 100644 --- a/test/SILGen/objc_error_fast_path.swift +++ b/test/SILGen/objc_error_fast_path.swift @@ -8,9 +8,10 @@ // RUN: %t/optimized.swift -module-name Lib \ // RUN: -emit-module -emit-module-path %t/Lib.swiftmodule \ // RUN: -swift-version 5 -enable-library-evolution -O +// RUN: %target-codesign %t/%target-library-name(Lib) // RUN: %target-build-swift %t/main.swift -o %t/main -I%t -lLib -L%t -O // RUN: %target-codesign %t/main -// RUN: %target-run %t/main | %FileCheck %s +// RUN: %target-run %t/main %t/%target-library-name(Lib) | %FileCheck %s /// Ensure the client has the optimization we're testing here. // RUN: %target-swift-frontend -typecheck -emit-silgen %t/Lib.swiftmodule > %t/Lib.sil @@ -22,9 +23,10 @@ // RUN: %t/non-optimized.swift -module-name Lib \ // RUN: -emit-module -emit-module-path %t/Lib.swiftmodule \ // RUN: -swift-version 5 -enable-library-evolution -O +// RUN: %target-codesign %t/%target-library-name(Lib) // RUN: %target-build-swift %t/main.swift -o %t/main -I%t -lLib -L%t -O // RUN: %target-codesign %t/main -// RUN: %target-run %t/main | %FileCheck %s +// RUN: %target-run %t/main %t/%target-library-name(Lib) | %FileCheck %s /// Ensure the client doesn't have the optimization we're testing here. // RUN: %target-swift-frontend -typecheck -emit-silgen %t/main.swift -I%t -O > %t/Lib.sil