]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: increase delay for waitpid test
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Wed, 29 Nov 2023 17:36:23 +0000 (11:36 -0600)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Dec 2023 10:11:01 +0000 (11:11 +0100)
In some test executions on s390x, the waitpid test fails because 1
gets printed before 2.

[  557s] --- /home/abuild/rpmbuild/BUILD/util-linux-2.39.2/tests/expected/misc/waitpid-normal 2023-06-14 09:11:15.910887765 +0000
[  557s] +++ /home/abuild/rpmbuild/BUILD/util-linux-2.39.2/tests/output/misc/waitpid-normal 2023-11-27 23:30:30.406675022 +0000
[  557s] @@ -1,4 +1,4 @@
[  557s]  3
[  557s] -2
[  557s]  1
[  557s] +2
[  557s]  4

Increase the time to print 1, so the test numbers are printed in
expected order.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
tests/ts/misc/waitpid

index daed74fe089c9475e35997368ee04dc1286997b9..904222c054a70b1ac93dbef9fe14be2bbab6e7a6 100755 (executable)
@@ -24,7 +24,7 @@ ts_check_test_command "$TS_CMD_WAITPID"
 
 ts_init_subtest normal
 
-(sleep 0.2; echo 1 >> "$TS_OUTPUT") &
+(sleep 0.5; echo 1 >> "$TS_OUTPUT") &
 BG1="$!"
 
 (sleep 0.1; echo 2 >> "$TS_OUTPUT") &