Skip to content
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

fix test_raw_tty hang #8520

Merged
merged 5 commits into from
Nov 27, 2020
Merged

fix test_raw_tty hang #8520

merged 5 commits into from
Nov 27, 2020

Conversation

ry
Copy link
Member

@ry ry commented Nov 27, 2020

On OSX and linux I can reproduce the hang reliably by running:

while true; do cargo test -p deno  tty -- --nocapture; done

Sometimes you have to wait a bit, but it shows up eventually.

I never see the hang when running

while true; do cargo test -p deno test_raw_tty  -- --nocapture; done

Therefore I think its related to fork / test runner.

Edit: working now.

Closes #4262

ry added 2 commits November 27, 2020 08:42
On OSX I can reproduce the hang reliably by running:

  while true; do cargo test -p deno  tty -- --nocapture; done

Sometimes you have to wait a bit, but it shows up eventually.

I never see the hang when running

  while true; do cargo test -p deno test_raw_tty  -- --nocapture; done

Therefore I think its related to fork / test runner.
@ry ry mentioned this pull request Nov 27, 2020
@ry ry changed the title WIP trying to fix test_raw_tty hang on mac fix test_raw_tty hang Nov 27, 2020
@ry ry requested a review from bartlomieju November 27, 2020 16:58
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, should we use exec in other test relying on tty?

@ry ry merged commit 29374db into denoland:master Nov 27, 2020
@ry ry deleted the test_raw_tty2 branch November 27, 2020 17:08
@ry
Copy link
Member Author

ry commented Nov 27, 2020

@bartlomieju I think so, I will investigate.

-> #8525

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.

test_raw_tty hangs
2 participants