-
-
Notifications
You must be signed in to change notification settings - Fork 142
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:命名管道读行为不符合posix规范问题 #1061
fix:命名管道读行为不符合posix规范问题 #1061
Conversation
@xiaolin2004: no appropriate reviewer found, use |
测试程序应当添加类似assert的东西,表明结果是否符合预期。 |
assert可能会导致当测试失败时,命名管道无法被关闭,并且出现僵尸进程。 |
你搞个宏,用于在每个测试条件前面输出 |
fifo的测试重复了,可以写到原来的test_mkfifo测试里,或者删掉原来那个 |
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.
- 使测试程序更好表明结果是否符合预期
- 考虑整合测试程序?
已经尽力写测试了。 |
本pr的测试收到调度系统的影响极大,不稳定表现包括:睡眠1s的进程比睡眠5s的进程更晚醒来,甚至测试结束后才醒来。 |
测试结果:
期望情况
非阻塞模式下
阻塞模式下
测试结果(截图)