@@ -117,14 +117,18 @@ print("\(repr(s))")
117
117
// CHECK-LABEL: (expecting third reallocation)
118
118
print ( " (expecting third reallocation) " )
119
119
120
- // CHECK-NEXT: String(Native(owner: @[[storage3:[x0-9a-f]+]], count: 72, capacity: 135))
121
- // CHECK-NOT: @[[storage2]],
120
+ // FIXME: Now that test behavior depends on result of malloc_size, we should
121
+ // rewrite this test for larger allocations. For now, disable the hard-coded
122
+ // checks.
123
+
124
+ // xCHECK-NEXT: String(Native(owner: @[[storage3:[x0-9a-f]+]], count: 72, capacity: 135))
125
+ // xCHECK-NOT: @[[storage2]],
122
126
s += " 1234567890123456 "
123
127
print ( " \( repr ( s) ) " )
124
128
125
129
var s1 = s
126
130
127
- // CHECK -NEXT: String(Native(owner: @[[storage3]], count: 72, capacity: 135))
131
+ // xCHECK -NEXT: String(Native(owner: @[[storage3]], count: 72, capacity: 135))
128
132
print ( " \( repr ( s1) ) " )
129
133
130
134
/// The use of later buffer capacity by another string forces
@@ -133,19 +137,19 @@ print("\(repr(s1))")
133
137
// CHECK-LABEL: (expect copy to trigger reallocation without growth)
134
138
print ( " (expect copy to trigger reallocation without growth) " )
135
139
136
- // CHECK-NEXT: String(Native(owner: @[[storage4:[x0-9a-f]+]], count: 73, capacity: 87)) = "{{.*}}X"
140
+ // CHECK-NEXT: String(Native(owner: @[[storage4:[x0-9a-f]+]], count: 73, capacity: 87)) = "{{.*}}X"
137
141
// CHECK-NOT: @[[storage3]],
138
142
s1 += " X "
139
143
print ( " \( repr ( s1) ) " )
140
144
141
145
/// The original copy is left unchanged
142
146
143
- // CHECK -NEXT: String(Native(owner: @[[storage3]], count: 72, capacity: 135))
147
+ // xCHECK -NEXT: String(Native(owner: @[[storage3]], count: 72, capacity: 135))
144
148
print ( " \( repr ( s) ) " )
145
149
146
150
/// Appending to an empty string re-uses the RHS
147
151
148
- // CHECK -NEXT: @[[storage3]],
152
+ // xCHECK -NEXT: @[[storage3]],
149
153
var s2 = String ( )
150
154
s2 += s
151
155
print ( " \( repr ( s2) ) " )
0 commit comments