Skip to content

StdlibUnittest: port the test harness to Windows #21356

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
Jan 3, 2019

Conversation

compnerd
Copy link
Member

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd compnerd force-pushed the harness branch 2 times, most recently from 43cccd8 to 7d5672f Compare December 23, 2018 17:49
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @xwu @moiseev

@compnerd compnerd changed the title WIP/stdlib: port the test harness to Windows StdlibUnittest: port the test harness to Windows Dec 23, 2018
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7d5672fbb906a48b1c13ff2f760f926f39e41dd0

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 7d5672fbb906a48b1c13ff2f760f926f39e41dd0

Windows uses DOS line endings which appear through the PIPE endpoints.
We currently split on line feeds only, leaving the carriage return in
place.  Without this, the messages on the communication pipe would not
be interpreted correctly.
Adjust the abort behaviour on Windows.  The aborts would cause a large
number of dialogs to appear.  This reduces the load a bit and is crucial
for getting tests to run without manual intervention.
Add a vectored exception handler for illegal instructions on Windows.
This allows us to emulate `signal(SIGTRAP, ...)`.  This allows better
coverage of tests.
@compnerd
Copy link
Member Author

compnerd commented Jan 2, 2019

@swift-ci please test

1 similar comment
@gottesmm
Copy link
Contributor

gottesmm commented Jan 2, 2019

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Jan 2, 2019

CC: @moiseev

@compnerd
Copy link
Member Author

compnerd commented Jan 3, 2019

CC: @lorentey

Copy link
Contributor

@moiseev moiseev left a comment

Choose a reason for hiding this comment

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

LGTM

@moiseev moiseev merged commit decd65d into swiftlang:master Jan 3, 2019
@compnerd compnerd deleted the harness branch January 4, 2019 01:39
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.

5 participants