=== RUN test_async_worker_notify_sigwinch +_t_runner:5> eval 'test_async_worker_notify_sigwinch; t_done' +(eval):1> test_async_worker_notify_sigwinch +test_async_worker_notify_sigwinch:1> local -a result +test_async_worker_notify_sigwinch:4> ASYNC_USE_ZLE_HANDLER=0 +test_async_worker_notify_sigwinch:6> async_start_worker test -n +async_start_worker:1> setopt localoptions noshwordsplit +async_start_worker:3> local worker=test +async_start_worker:3> shift +async_start_worker:4> local -a args +async_start_worker:5> args=( -n ) +async_start_worker:6> zpty -t test +async_start_worker:8> typeset -gA ASYNC_PTYS +async_start_worker:9> typeset -h REPLY +async_start_worker:10> typeset has_xtrace=0 +async_start_worker:14> [[ -o xtrace ]] +async_start_worker:15> has_xtrace=1 +async_start_worker:16> unsetopt xtrace +async_start_worker:49> is-at-least 5.0.8 +is-at-least:23> emulate -L zsh +is-at-least:25> local IFS=.- min_cnt=0 ver_cnt=0 part min_ver version order +is-at-least:27> min_ver=( 5 0 8 ) +is-at-least:28> version=( 5 8 1 0 ) +is-at-least:30> (( 0 <= 3 )) +is-at-least:31> [[ '' != <-> ]] +is-at-least:32> (( ++ver_cnt > 4 )) +is-at-least:33> [[ 5 = *[0-9][^0-9]* ]] +is-at-least:45> part=5 +is-at-least:31> [[ 5 != <-> ]] +is-at-least:48> true +is-at-least:49> (( ++min_cnt > 3 )) +is-at-least:50> [[ 5 = <-> ]] +is-at-least:50> break +is-at-least:53> (( part > min_ver[min_cnt] )) +is-at-least:54> (( part < min_ver[min_cnt] )) +is-at-least:55> part='' +is-at-least:30> (( 1 <= 3 )) +is-at-least:31> [[ '' != <-> ]] +is-at-least:32> (( ++ver_cnt > 4 )) +is-at-least:33> [[ 8 = *[0-9][^0-9]* ]] +is-at-least:45> part=8 +is-at-least:31> [[ 8 != <-> ]] +is-at-least:48> true +is-at-least:49> (( ++min_cnt > 3 )) +is-at-least:50> [[ 0 = <-> ]] +is-at-least:50> break +is-at-least:53> (( part > min_ver[min_cnt] )) +is-at-least:53> return 0 +async_start_worker:56> [[ -o interactive ]] +test_async_worker_notify_sigwinch:7> async_register_callback test cb +async_register_callback:1> setopt localoptions noshwordsplit nolocaltraps +async_register_callback:3> typeset -gA ASYNC_PTYS ASYNC_CALLBACKS +async_register_callback:4> local worker=test +async_register_callback:4> shift +async_register_callback:6> ASYNC_CALLBACKS[$worker]=cb +async_register_callback:10> [[ ! -o interactive ]] +async_register_callback:11> trap _async_notify_trap WINCH +test_async_worker_notify_sigwinch:9> async_job test 'sleep 0.1; print hi' +async_job:1> setopt localoptions noshwordsplit noksharrays noposixidentifiers noposixstrings +async_job:3> local worker=test +async_job:3> shift +async_job:5> local -a cmd +async_job:6> cmd=( 'sleep 0.1; print hi' ) +async_job:7> (( 1 > 1 )) +async_job:11> _async_send_job async_job test 'sleep 0.1; print hi' +_async_send_job:1> setopt localoptions noshwordsplit noksharrays noposixidentifiers noposixstrings +_async_send_job:3> local caller=async_job +_async_send_job:4> local worker=test +_async_send_job:5> shift 2 +_async_send_job:7> zpty -t test +_async_send_job:19> zpty -w test $'sleep 0.1; print hi\C-@' +test_async_worker_notify_sigwinch:11> (( ! 0 )) +test_async_worker_notify_sigwinch:11> sleep 0.01 +test_async_worker_notify_sigwinch:11> (( ! 0 )) +test_async_worker_notify_sigwinch:11> sleep 0.01 +test_async_worker_notify_sigwinch:11> (( ! 0 )) +test_async_worker_notify_sigwinch:11> sleep 0.01