More robust test

This commit is contained in:
Alexey Milovidov 2019-05-05 02:42:36 +03:00
parent b2f44beeb4
commit eb0a8d1709

View File

@ -24,14 +24,22 @@ function thread2()
export -f thread1; export -f thread1;
export -f thread2; export -f thread2;
timeout 5 bash -c thread1 2> /dev/null & timeout 15 bash -c thread1 2> /dev/null &
timeout 5 bash -c thread1 2> /dev/null & timeout 15 bash -c thread1 2> /dev/null &
timeout 5 bash -c thread1 2> /dev/null & timeout 15 bash -c thread1 2> /dev/null &
timeout 5 bash -c thread1 2> /dev/null & timeout 15 bash -c thread1 2> /dev/null &
timeout 5 bash -c thread2 2> /dev/null & timeout 15 bash -c thread2 2> /dev/null &
timeout 5 bash -c thread2 2> /dev/null & timeout 15 bash -c thread2 2> /dev/null &
timeout 5 bash -c thread2 2> /dev/null & timeout 15 bash -c thread2 2> /dev/null &
timeout 5 bash -c thread2 2> /dev/null & timeout 15 bash -c thread2 2> /dev/null &
timeout 15 bash -c thread1 2> /dev/null &
timeout 15 bash -c thread1 2> /dev/null &
timeout 15 bash -c thread1 2> /dev/null &
timeout 15 bash -c thread1 2> /dev/null &
timeout 15 bash -c thread2 2> /dev/null &
timeout 15 bash -c thread2 2> /dev/null &
timeout 15 bash -c thread2 2> /dev/null &
timeout 15 bash -c thread2 2> /dev/null &
wait wait