Skip to content

[NSTask] Change argv[0] to full path + fixes combining stdout+stderr #353

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
May 10, 2016

Conversation

Bouke
Copy link
Contributor

@Bouke Bouke commented May 9, 2016

  • Helper function to reduce TestNSTask test case duplication
  • Fix issue capturing stdout and stderr to same pipe + test case
  • Pass complete path as argv[0]
    This allows executables to derive their own absolute path. SwiftPM relies on this value to derive the compiler path and fake toolchain path.

@@ -27,7 +27,7 @@ class TestNSTask : XCTestCase {
("test_pipe_stdin", test_pipe_stdin),
("test_pipe_stdout", test_pipe_stdout),
("test_pipe_stderr", test_pipe_stderr),
("test_file_stdout", test_file_stdout),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, will put it back in.

This allows executables to derive their own absolute
path. SwiftPM relies on this value to derive the compiler
path and fake toolchain path.
@parkera
Copy link
Contributor

parkera commented May 10, 2016

@swift-ci please test

@parkera parkera merged commit 4c6f04c into swiftlang:master May 10, 2016
@Bouke Bouke deleted the nstask-fixes branch May 10, 2016 21:12
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.

3 participants