Skip to content

Commit 6f51c42

Browse files
committed
---
yaml --- r: 347115 b: refs/heads/master c: 6283df7 h: refs/heads/master i: 347113: 3eb93d6 347111: 74fcbe6
1 parent ae9e7ff commit 6f51c42

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5d901cec447c796c59bfcfd3fe0023b50cb2aa04
2+
refs/heads/master: 6283df7b2334dcb72702dfb6f4eb863aa704d68b
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/validation-test/stdlib/StringMemoryTest.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func lowercase(_ str: String) -> String {
3333
/// Make sure the hash function does not leak.
3434

3535
let dict = [ "foo" : 1]
36-
for _ in 0 ..< 10_000_000 {
36+
for _ in 0 ..< 1_000_000 {
3737
if lookup("\u{1F1E7}\u{1F1E7}", dict) {
3838
print("Found?!")
3939
}
@@ -56,9 +56,9 @@ getrusage(RUSAGE_SELF, &usage)
5656
// CHECK: success
5757
// CHECK-NOT: failure
5858

59-
// We should not need 50MB for this.
60-
if usage.ru_maxrss > 50 * 1024 * 1024 {
61-
print("failure - should not need 50MB!")
59+
// We should not need 10MB for this.
60+
if usage.ru_maxrss > 10 * 1024 * 1024 {
61+
print("failure - should not need 10MB!")
6262
} else {
6363
print("success")
6464
}

0 commit comments

Comments
 (0)