-
Notifications
You must be signed in to change notification settings - Fork 625
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
Enable running spec tests on Windows #2423
Enable running spec tests on Windows #2423
Conversation
4648d85
to
5e9ec5c
Compare
7835754
to
1a482d6
Compare
@wenyongh looks like the build failure is not related to this change. Could we possibly rebase the |
1a482d6
to
2d5fa99
Compare
2840912
to
4119205
Compare
Thanks a lot @wenyongh , the PR is now ready for review. |
We don't enable those tests in CI yet as not all of them are passing
7315912
to
68b6708
Compare
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.
LGTM
@@ -101,35 +135,53 @@ def __init__(self, args, no_pty=False): | |||
self.stdin = os.fdopen(master, 'r+b', 0) | |||
self.stdout = self.stdin | |||
|
|||
if platform.system().lower() == "windows": |
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.
Just be curious, is it possible to have a cross-platform solution for reading stdout?
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.
Good question. The only cross-platform I could think of was by using a thread and a queue (just like it was implemented in this PR for Windows); but I did not use this technique for other operating systems because it turned to be significantly (2 - 3 x) slower, so I kept the approach with select
for non-windows platforms.
ea76300
into
bytecodealliance:dev/wasi-libc-windows
Update wamr-test-suites scripts to enable running spec tests on Windows. We don't enable those tests in CI yet as not all of them are passing.
We don't enable those tests in CI yet as not all of them are passing