From 0fd7e24724e43fe01b5c54237d7686ca5b144f58 Mon Sep 17 00:00:00 2001 From: Allan Shortlidge Date: Sat, 29 Oct 2022 14:20:15 -0700 Subject: [PATCH] Tests: Add REQUIRES: CPU=x86_64 in a few Interop tests. These tests fail when run locally on Apple Silicon Macs because they specify `-target x86_64-apple-macosx10.9` instead of `%target-cpu-apple-macosx10.9`. Tests that have architecture specific output should require that architecture. --- test/Interop/Cxx/class/constructors-copy-irgen-macosx.swift | 4 +--- test/Interop/Cxx/class/constructors-irgen-macosx.swift | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/Interop/Cxx/class/constructors-copy-irgen-macosx.swift b/test/Interop/Cxx/class/constructors-copy-irgen-macosx.swift index 1e89b7298f199..a53dab8ed3fc8 100644 --- a/test/Interop/Cxx/class/constructors-copy-irgen-macosx.swift +++ b/test/Interop/Cxx/class/constructors-copy-irgen-macosx.swift @@ -3,9 +3,7 @@ // RUN: %swift -module-name MySwift -target x86_64-apple-macosx10.9 -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=ITANIUM_X64 // REQUIRES: OS=macosx - -// REQUIRES: CODEGENERATOR=X86 -// REQUIRES: CODEGENERATOR=ARM +// REQUIRES: CPU=x86_64 import Constructors diff --git a/test/Interop/Cxx/class/constructors-irgen-macosx.swift b/test/Interop/Cxx/class/constructors-irgen-macosx.swift index a06a051935420..d393b0c1d8c9e 100644 --- a/test/Interop/Cxx/class/constructors-irgen-macosx.swift +++ b/test/Interop/Cxx/class/constructors-irgen-macosx.swift @@ -3,9 +3,7 @@ // RUN: %swift -module-name MySwift -target x86_64-apple-macosx10.9 -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=ITANIUM_X64 // REQUIRES: OS=macosx - -// REQUIRES: CODEGENERATOR=X86 -// REQUIRES: CODEGENERATOR=ARM +// REQUIRES: CPU=x86_64 import Constructors import TypeClassification