Skip to content

Commit 11690ac

Browse files
authored
Merge pull request #61927 from atrick/fix-macro-tests
macro_plugin tests requires asserts
2 parents 67728ea + 9daffe0 commit 11690ac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/Macros/builtin_macros.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-swift-frontend -enable-experimental-feature BuiltinMacros -dump-ast %s -module-name MacrosTest 2>&1 | %FileCheck %s
22
// REQUIRES: OS=macosx
3-
// REQUIRES: asserts
4-
53

64
// CHECK: macro_expansion_expr implicit type='String'
75
// CHECK-NEXT: string_literal_expr{{.*}}Macro expansion of #function in{{.*}}value="MacrosTest"
@@ -13,7 +11,7 @@ func f(a: Int, b: Int) {
1311
// CHECK-NEXT: string_literal_expr{{.*}}Macro expansion of #function in{{.*}}value="f(a:b:)"
1412

1513
// CHECK: macro_expansion_expr implicit type='Int'
16-
// CHECK-NEXT: integer_literal_expr{{.*}}Macro expansion of #line in{{.*}}value=11
14+
// CHECK-NEXT: integer_literal_expr{{.*}}Macro expansion of #line in{{.*}}value=9
1715

1816
// CHECK: macro_expansion_expr implicit type='Int'
1917
// CHECK-NEXT: integer_literal_expr{{.*}}Macro expansion of #column in{{.*}}value=27

test/Macros/lit.local.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# '-enable-experimental-feature Macros' requires an asserts build.
2+
if 'asserts' not in config.available_features:
3+
config.unsupported = True

test/Macros/macros.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-swift-frontend -enable-experimental-feature Macros -dump-ast %s -module-name MacrosTest 2>&1 | %FileCheck %s
22
// REQUIRES: OS=macosx
3-
// REQUIRES: asserts
43

54
func test(a: Int, b: Int) {
65
let s = #stringify(a + b)

0 commit comments

Comments
 (0)