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

bug of stderr in test(py) ?? #89

Open
ak0327 opened this issue May 30, 2023 · 0 comments
Open

bug of stderr in test(py) ?? #89

ak0327 opened this issue May 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ak0327
Copy link
Collaborator

ak0327 commented May 30, 2023

#64 (comment) のバグ部分

test(py)にてminishellへのinputが
"exit 12345678901234567890123456789012345678901234567890123456789012345"
の時、subprocessで取得したstderrがバグる

minishellのrl_streamをstderrにしているため、コマンドの入力と合わせて捕捉され
minishell exit 12345678901234567890123456789012345678901234567890123456789012345
の文字列長になった瞬間おかしくなるらしい。
末尾\nをつけても変わらないが、文字列±1で正常になる。
exit, echoいずれもバグる。
rl_streamをstdinにするとバグらない。

現状はこの文字列長の入力を避けているが、テストの潜在的なバグ(?)のため、解決しておきたい
現状は原因の切り分けもできていない(minishell, readline, subprocess, test_functions.py, etc)

@ak0327 ak0327 changed the title python subprocessの python subprocessのstderr May 30, 2023
@ak0327 ak0327 added the bug Something isn't working label May 30, 2023
@ak0327 ak0327 changed the title python subprocessのstderr bug of stderr in test(py) ?? May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant