-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add 'PseudoTerminal' to 'TestSupport' #1720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -12,46 +12,10 @@ import XCTest | |||
import Utility | |||
import SPMLibc | |||
@testable import Basic | |||
@testable import TestSupport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make the class public instead of doing a testable import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks!
// Make sure to read the complete output before checking it. | ||
pty.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't close these fds at the same time. We should keep the separate closeSlave() and closeMaster() methods and change close() method to call those method in succession.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Fixed!
// Make sure to read the complete output before checking it. | ||
pty.closeSlave() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This diff is no longer required, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh sorry, my bad checking. Fixed!
@swift-ci smoke test |
Add 'PseudoTerminal' to 'TestSupport' so it can be shared across different test targets
[ @aciidb0mb3r suggestion ]