From 4e22193d9e6211e936fc7dea2f2661a36d827f7c Mon Sep 17 00:00:00 2001 From: Nate Chandler Date: Thu, 24 Aug 2023 13:45:18 -0700 Subject: [PATCH] [Test] Require asserts for some experimental-feature tests. For LazyImmediate and TupleConformances. --- test/IRGen/tuple_conformances.swift | 3 +++ test/Interpreter/lazy/deferred_syntax_errors.swift | 3 +++ test/Interpreter/lazy/deferred_type_errors.swift | 3 +++ test/Interpreter/lazy/globals.swift | 3 +++ test/Interpreter/lazy/linkage_promotion.swift | 3 +++ 5 files changed, 15 insertions(+) diff --git a/test/IRGen/tuple_conformances.swift b/test/IRGen/tuple_conformances.swift index bcb9075da4849..a85fb8c4a53de 100644 --- a/test/IRGen/tuple_conformances.swift +++ b/test/IRGen/tuple_conformances.swift @@ -1,5 +1,8 @@ // RUN: %target-swift-frontend -emit-ir -parse-stdlib -primary-file %s -enable-experimental-feature TupleConformances -parse-as-library | %FileCheck %s +// -enable-experimental-feature requires an asserts build +// REQUIRES: asserts + import Swift protocol P { diff --git a/test/Interpreter/lazy/deferred_syntax_errors.swift b/test/Interpreter/lazy/deferred_syntax_errors.swift index 6788805237b04..5e112c69994b8 100644 --- a/test/Interpreter/lazy/deferred_syntax_errors.swift +++ b/test/Interpreter/lazy/deferred_syntax_errors.swift @@ -1,6 +1,9 @@ // REQUIRES: OS=macosx // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s +// -enable-experimental-feature requires an asserts build +// REQUIRES: asserts + // Tests that parsing of function bodies is deferred // to runtime when the interpreter is invoked using // experimental lazy compilation. Syntax errors in diff --git a/test/Interpreter/lazy/deferred_type_errors.swift b/test/Interpreter/lazy/deferred_type_errors.swift index 8b68308b09282..b905f932264dd 100644 --- a/test/Interpreter/lazy/deferred_type_errors.swift +++ b/test/Interpreter/lazy/deferred_type_errors.swift @@ -1,6 +1,9 @@ // REQUIRES: OS=macosx // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s +// -enable-experimental-feature requires an asserts build +// REQUIRES: asserts + // Tests that type checking of function bodies is // deferred to runtime when the interpreter is invoked // using experimental lazy compilation. Type errors in diff --git a/test/Interpreter/lazy/globals.swift b/test/Interpreter/lazy/globals.swift index e4b2b9381ae30..17da6a282d42c 100644 --- a/test/Interpreter/lazy/globals.swift +++ b/test/Interpreter/lazy/globals.swift @@ -1,6 +1,9 @@ // REQUIRES: OS=macosx // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s +// -enable-experimental-feature requires an asserts build +// REQUIRES: asserts + // Tests that piecewise compilation works with global variables let x = 1 diff --git a/test/Interpreter/lazy/linkage_promotion.swift b/test/Interpreter/lazy/linkage_promotion.swift index 72d4f3d5c095f..1dbfcc4134633 100644 --- a/test/Interpreter/lazy/linkage_promotion.swift +++ b/test/Interpreter/lazy/linkage_promotion.swift @@ -2,6 +2,9 @@ // REQUIRES: swift_interpreter // RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s +// -enable-experimental-feature requires an asserts build +// REQUIRES: asserts + // Tests that the linkage of private symbols is // promoted to hidden external, allowing // single-function compilation of non-public symbols.