Skip to content

Commit 47766ab

Browse files
committed
[Stdlib] Make SwiftObjectNSObject actually pass on older OSes where the real test is disabled.
It helps to print the fake messages where FileCheck will actually be looking for them. rdar://problem/48421324
1 parent e731272 commit 47766ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/stdlib/SwiftObjectNSObject.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if #available(OSX 10.12, iOS 10.0, *) {
5151
// does not return
5252
} else {
5353
// Horrible hack to satisfy FileCheck
54-
print("c ##SwiftObjectNSObject.C##")
55-
print("d ##SwiftObjectNSObject.D##")
56-
print("S ##Swift._SwiftObject##")
54+
fputs("c ##SwiftObjectNSObject.C##\n", stderr)
55+
fputs("d ##SwiftObjectNSObject.D##\n", stderr)
56+
fputs("S ##Swift._SwiftObject##\n", stderr)
5757
}

0 commit comments

Comments
 (0)