Skip to content

Conversation

@vatsalkeshav
Copy link

The test_infinite_output_command is supposed to be for commands like yes.
So the use of command yes itself for test_infinite_output_command seems rational but yes tries as to maximize CPU usage by generating output as fast as possible in an infinite loop without any delay between repetitions.
This means the test could fail or pass arbitrarily based on the CPU condition or load.
This test could be made more reliable by using a controlled loop like bash -c "while true; do echo 'test'; sleep 0.1; done" instead of yes for the test in question.

@cfsmp3 cfsmp3 merged commit 60e6c1b into cfsmp3:master Apr 11, 2025
1 check passed
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.

2 participants