Skip to content

Commit dae2503

Browse files
author
David Ungar
authored
Merge pull request #26569 from davidungar/master-for-54092201
Require assertions on scope-printing tests
2 parents 9b8b795 + 9d6b665 commit dae2503

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

test/NameBinding/scope_map-astscopelookup.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,3 +500,6 @@ class LazyProperties {
500500

501501

502502
// CHECK-SEARCHES-NOT: ***Complete scope map***
503+
504+
// REQUIRES: asserts
505+
// absence of assertions can change the "uncached" bit and cause failures

test/NameBinding/scope_map.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,3 +503,6 @@ class LazyProperties {
503503

504504

505505
// CHECK-SEARCHES-NOT: ***Complete scope map***
506+
507+
// REQUIRES: asserts
508+
// absence of assertions can change the "uncached" bit and cause failures

test/NameBinding/scope_map_top_level.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var i: Int = b.my_identity()
2626

2727

2828
// CHECK-EXPANDED: ***Complete scope map***
29-
// CHECK-EXPANDED-NEXT: ASTSourceFileScope {{.*}}, (uncached) [1:1 - 62:1] 'SOURCE_DIR{{[/\\]}}test{{[/\\]}}NameBinding{{[/\\]}}scope_map_top_level.swift'
29+
// CHECK-EXPANDED-NEXT: ASTSourceFileScope {{.*}}, (uncached) [1:1 - 6{{.*}}:1] 'SOURCE_DIR{{[/\\]}}test{{[/\\]}}NameBinding{{[/\\]}}scope_map_top_level.swift'
3030
// CHECK-EXPANDED-NEXT: |-NominalTypeDeclScope {{.*}}, [4:1 - 4:13] 'S0'
3131
// CHECK-EXPANDED-NEXT: `-NominalTypeBodyScope {{.*}}, [4:11 - 4:13] 'S0'
3232
// CHECK-EXPANDED-NEXT: `-TopLevelCodeScope {{.*}}, [6:1 - 21:28]
@@ -59,3 +59,6 @@ var i: Int = b.my_identity()
5959
// CHECK-EXPANDED-NEXT: `-BraceStmtScope {{.*}}, [21:1 - 21:28]
6060
// CHECK-EXPANDED-NEXT: `-PatternEntryDeclScope {{.*}}, [21:5 - 21:28] entry 0 'i'
6161
// CHECK-EXPANDED-NEXT: `-PatternEntryInitializerScope {{.*}}, [21:14 - 21:28] entry 0 'i'
62+
63+
// REQUIRES: asserts
64+
// absence of assertions can change the "uncached" bit and cause failures

0 commit comments

Comments
 (0)