0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/pseudo-tty
Gireesh Punathil d631af59c0
test: delay child exit in AIX for pseudo-tty tests
The tests in pseudo-tty takes the form of child node writing some data
and exiting, while parent python consume them through pseudo tty
implementations, and validate the result.

While there is no synchronization between child and parent, this works
for most platforms, except AIX, where the child exits even before the
parent could setup the read loop, under race conditions

Fixing the race condition is ideally done through sending ACK messages
to and forth, but involves massive changes and have side effect. The
workaround is to address them in AIX alone, by adding a reasonable
delay.

PR-URL: https://github.com/nodejs/node/pull/11715
Fixes: https://github.com/nodejs/node/issues/7973
Fixes: https://github.com/nodejs/node/issues/9765
Fixes: https://github.com/nodejs/node/issues/11541
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2017-03-17 12:28:44 +00:00
..
no_dropped_stdio.js test: delay child exit in AIX for pseudo-tty tests 2017-03-17 12:28:44 +00:00
no_dropped_stdio.out
no_interleaved_stdio.js test: delay child exit in AIX for pseudo-tty tests 2017-03-17 12:28:44 +00:00
no_interleaved_stdio.out
pseudo-tty.status test: delay child exit in AIX for pseudo-tty tests 2017-03-17 12:28:44 +00:00
ref_keeps_node_running.js tty: add ref() so process.stdin.ref() etc. work 2017-02-28 18:44:05 +01:00
ref_keeps_node_running.out tty: add ref() so process.stdin.ref() etc. work 2017-02-28 18:44:05 +01:00
stdin-setrawmode.js test: add test for process.stdin.setRawMode() 2016-12-05 14:23:15 -08:00
stdin-setrawmode.out test: add stdin-setrawmode.out file 2016-12-09 15:20:51 +01:00
test-handle-wrap-isrefed-tty.js tty: add ref() so process.stdin.ref() etc. work 2017-02-28 18:44:05 +01:00
test-handle-wrap-isrefed-tty.out tty: add ref() so process.stdin.ref() etc. work 2017-02-28 18:44:05 +01:00
test-stderr-stdout-handle-sigwinch.js test: delay child exit in AIX for pseudo-tty tests 2017-03-17 12:28:44 +00:00
test-stderr-stdout-handle-sigwinch.out test: add test for SIGWINCH handling by stdio.js 2016-12-27 21:21:35 -08:00
test-tty-stdout-end.js test: fix old tty tests 2016-07-11 15:22:09 +02:00
test-tty-stdout-end.out test: fix old tty tests 2016-07-11 15:22:09 +02:00
test-tty-wrap.js test: fix old tty tests 2016-07-11 15:22:09 +02:00
test-tty-wrap.out test: fix old tty tests 2016-07-11 15:22:09 +02:00
testcfg.py test: fail for missing output files 2016-12-12 16:11:12 +01:00