fortrangoingonforty/fortsh / 681341e

Browse files

increase sleep duration in POSIX job control test to avoid race

sleep 0.5 could finish before jobs runs on fast CI runners,
causing the test to see Done instead of Running.
Authored by espadonne
SHA
681341eebc21e89ad0df8b1bcdc1a9492fdda11a
Parents
9e9c2a1
Tree
88f9362

1 changed file

StatusFile+-
M tests/posix_compliance_jobcontrol.sh 1 1
tests/posix_compliance_jobcontrol.shmodified
@@ -139,7 +139,7 @@ section "149. JOBS BUILTIN OUTPUT"
139139
 test_succeeds "jobs with no jobs" 'jobs'
140140
 test_succeeds "jobs after background" 'sleep 0.5 & jobs; wait'
141141
 # Test that jobs shows running processes
142
-test_contains "jobs shows running" 'sleep 0.5 & jobs' 'sleep'
142
+test_contains "jobs shows running" 'sleep 5 & jobs' 'sleep'
143143
 
144144
 section "150. BACKGROUND PIPELINES"
145145