Skip to content

Commit b475568

Browse files
committed
[test] Separate stdout and stderr in SwiftObjectNSObject.swift
remote-run doesn't always preserve the interleaving, but we don't need stdout at all given what's being checked; it's just used to show how far the test got before failing. The output being FileChecked is going through NSLog, which uses stderr. Part of rdar://problem/44866579
1 parent 1f7a7b6 commit b475568

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/stdlib/SwiftObjectNSObject.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
// RUN: %target-clang %S/Inputs/SwiftObjectNSObject/SwiftObjectNSObject.m -c -o %t/SwiftObjectNSObject.o -g
1616
// RUN: %target-build-swift %s -I %S/Inputs/SwiftObjectNSObject/ -Xlinker %t/SwiftObjectNSObject.o -o %t/SwiftObjectNSObject
1717
// RUN: %target-codesign %t/SwiftObjectNSObject
18-
// RUN: %target-run %t/SwiftObjectNSObject 2>&1 | %FileCheck %s
18+
// RUN: %target-run %t/SwiftObjectNSObject 2> %t/log.txt
19+
// RUN: %FileCheck %s < %t/log.txt
1920
// REQUIRES: executable_test
2021

2122
// REQUIRES: objc_interop

0 commit comments

Comments
 (0)