-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Windows test suite compatibility #13
Conversation
// Note: very strange behaviour of Windows (PHP 5.5.6): | ||
// on a 1000 long string, Windows succeeds. | ||
// on a 10000 long string, Windows fails to output anything. | ||
// On a 100000 long string, it takes a lot of time but succeeds. |
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.
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.
@moufmouf: I'd appreciate it if you could run these test suite changes on Windows and report back whether they succeed. Based on earlier discussion with @auroraeosrose, I was inclined to make |
$output .= $data; | ||
}); | ||
$process->stderr->on('data', function ($data) use (&$error) { | ||
$error .= $data; |
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.
@moufmouf: Why was the stderr check only added to this test case? Was there a case where it failed on Windows and you caught some output here?
@jmikola Here is the result of the test suite running on PHP 5.6.6 (it's a bit long, I put the raw output so you can see what is happening):
Note: on PHP 5.5.12, the unit test simply locks due to a PHP bug (that was fixed in PHP 5.5.18 and PHP 5.6.3) Here is the output (until it locks and stops responding):
|
@moufmouf: If I understand correctly, the
|
Cleans up some formatting, uses a more precise check for execution duration, and applies more reliable escaping of Windows command-line parameters.
b083aeb
to
df0e00b
Compare
Thank you for digging into this and filing this PR! 👍 I still think that getting this feature in makes perfect sense and I'm looking forward to a future update here as per #9 (comment)! Given that this is currently a WIP and hasn't seen any updates in a while and I don't see it's likely this will get traction any time soon, I will have to close this for now. Please don't see this as discouraging, we would still love to get this feature in and very much appreciate your effort! You can simply complete this feature and update this PR and we're happy to reopen this 👍 Thank you for your effort! |
This PR is a rebased version of #10 with additional cleanup.