diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-08-09 23:35:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 23:35:11 -0400 |
commit | b3c0ed295f743bff1a78d0a89c9bf3327f28fb50 (patch) | |
tree | 9da44a8efb3b6974cb1a2cd8faf8c58afedd8550 /components/script/dom | |
parent | 18c500ecc8fb2d8ed2ff781d3a7f51a405706af5 (diff) | |
parent | 2bd2281853408b113a9af699c260d68cdfe8e6c7 (diff) | |
download | servo-b3c0ed295f743bff1a78d0a89c9bf3327f28fb50.tar.gz servo-b3c0ed295f743bff1a78d0a89c9bf3327f28fb50.zip |
Auto merge of #23922 - angelortiz1007:redir, r=jdm
Redirect stdout/stderr on windows
Added function redirect_stdout_stderr() to support stdout & stderr to be redirected to OutputDebugStringA().
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `23734` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #23734 (GitHub issue number if applicable)
<!-- Either: -->
- [X] There are tests for these changes OR
Functionality was verified by adding logic in unsafe fn init(). By building and running ServoApp, If redirect_stdout_stderr() failed, a warn!() message would be sent to the "output" window of VS2007 with the GetLastError() value. If the function redirect_stdout_stderr() succeeded, the println!("Capi/lib.rs: init() function called redirect_stdout_stderr() successfully.\n") output would be seen in the "output" window of VS2007.
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23922)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
0 files changed, 0 insertions, 0 deletions