|
16 | 16 | // RUN: %target-build-swift %s -g -I %S/Inputs/SwiftObjectNSObject/ -Xlinker %t/SwiftObjectNSObject.o -o %t/SwiftObjectNSObject
|
17 | 17 | // RUN: %target-codesign %t/SwiftObjectNSObject
|
18 | 18 | // RUN: %target-run %t/SwiftObjectNSObject 2> %t/log.txt
|
| 19 | +// RUN: cat %t/log.txt 1>&2 |
19 | 20 | // RUN: %FileCheck %s < %t/log.txt
|
20 | 21 | // REQUIRES: executable_test
|
21 | 22 |
|
@@ -115,11 +116,17 @@ func TestNonEquatableHash(_ e: AnyObject)
|
115 | 116 | TestSwiftObjectNSObjectDefaultHashValue(e)
|
116 | 117 | }
|
117 | 118 |
|
118 |
| -// This check is for NSLog() output from TestSwiftObjectNSObject(). |
| 119 | +// Check NSLog() output from TestSwiftObjectNSObject(). |
| 120 | +
|
119 | 121 | // CHECK: c ##SwiftObjectNSObject.C##
|
120 | 122 | // CHECK-NEXT: d ##SwiftObjectNSObject.D##
|
121 | 123 | // CHECK-NEXT: S ##{{.*}}SwiftObject##
|
122 | 124 |
|
| 125 | +// Full message is longer, but this is the essential part... |
| 126 | +// CHECK-NEXT: Obj-C `-hash` {{.*}} type `SwiftObjectNSObject.E` {{.*}} Equatable but not Hashable |
| 127 | +// CHECK-NEXT: Obj-C `-hash` {{.*}} type `SwiftObjectNSObject.E1` {{.*}} Equatable but not Hashable |
| 128 | +// CHECK-NEXT: Obj-C `-hash` {{.*}} type `SwiftObjectNSObject.E2` {{.*}} Equatable but not Hashable |
| 129 | +
|
123 | 130 | // Temporarily disable this test on older OSes until we have time to
|
124 | 131 | // look into why it's failing there. rdar://problem/47870743
|
125 | 132 | if #available(OSX 10.12, iOS 10.0, *) {
|
@@ -185,4 +192,7 @@ if #available(OSX 10.12, iOS 10.0, *) {
|
185 | 192 | fputs("c ##SwiftObjectNSObject.C##\n", stderr)
|
186 | 193 | fputs("d ##SwiftObjectNSObject.D##\n", stderr)
|
187 | 194 | fputs("S ##Swift._SwiftObject##\n", stderr)
|
| 195 | + fputs("Obj-C `-hash` ... type `SwiftObjectNSObject.E` ... Equatable but not Hashable", stderr) |
| 196 | + fputs("Obj-C `-hash` ... type `SwiftObjectNSObject.E1` ... Equatable but not Hashable", stderr) |
| 197 | + fputs("Obj-C `-hash` ... type `SwiftObjectNSObject.E2` ... Equatable but not Hashable", stderr) |
188 | 198 | }
|
0 commit comments