Skip to content

Make test_infinite_output_command more reliable#9

Merged
cfsmp3 merged 1 commit intocfsmp3:masterfrom
vatsalkeshav:cuatro-golpes
Apr 11, 2025
Merged

Make test_infinite_output_command more reliable#9
cfsmp3 merged 1 commit intocfsmp3:masterfrom
vatsalkeshav:cuatro-golpes

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