Skip to content

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

Merged
merged 4 commits into from
Aug 4, 2018

Conversation

JhonnyBillM
Copy link
Contributor

Add 'PseudoTerminal' to 'TestSupport' so it can be shared across different test targets
[ @aciidb0mb3r suggestion ]

@@ -12,46 +12,10 @@ import XCTest
import Utility
import SPMLibc
@testable import Basic
@testable import TestSupport
Copy link
Contributor

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

Copy link
Contributor Author

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()
Copy link
Contributor

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.

Copy link
Contributor Author

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()
Copy link
Contributor

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?

Copy link
Contributor Author

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!

@aciidgh
Copy link
Contributor

aciidgh commented Aug 3, 2018

@swift-ci smoke test

@aciidgh aciidgh merged commit 149f470 into swiftlang:master Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants