[PATCH] increase delay for waitpid test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>


diff --git a/tests/ts/misc/waitpid b/tests/ts/misc/waitpid
--- a/tests/ts/misc/waitpid
+++ b/tests/ts/misc/waitpid
@@ -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") &

-- 
Goldwyn




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux