node/test/pseudo-tty
Anna Henningsen 2fc72cac97
test: fix flaky test-trace-sigint-on-idle
Previously, the test could fail on slow machines because the
child process was still in the process of starting up after
one second, and not yet idle.

To resolve this:
- Wait for a message from the child process indicating that it
  had started.
- Wait some time after that, but make it platform-dependent to
  account for timing differences.
- Remove the timer in the child process.

PR-URL: https://github.com/nodejs/node/pull/31645
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-04-28 16:00:46 +02:00
..
console_colors.js util: highlight stack frames 2019-04-15 17:30:50 +02:00
console_colors.out test: do not strip left whitespace in pseudo-tty tests 2019-04-19 10:44:02 +08:00
console-dumb-tty.js console: don't use ANSI escape codes when TERM=dumb 2019-03-21 23:32:59 +01:00
console-dumb-tty.out console: don't use ANSI escape codes when TERM=dumb 2019-03-21 23:32:59 +01:00
no_dropped_stdio.js test: change isAix to isAIX 2017-07-16 02:24:47 -07:00
no_dropped_stdio.out
no_interleaved_stdio.js test: change isAix to isAIX 2017-07-16 02:24:47 -07:00
no_interleaved_stdio.out
pseudo-tty.status test: fix pty test hangs on aix 2019-07-20 11:10:27 +02:00
pty_helper.py tools: make pty_helper.py python3-compatible 2019-08-20 09:10:14 +02:00
readline-dumb-tty.js readline: support TERM=dumb 2019-03-21 23:33:55 +01:00
readline-dumb-tty.out readline: support TERM=dumb 2019-03-21 23:33:55 +01:00
ref_keeps_node_running.js tty: make process.binding('tty_wrap') internal 2018-08-29 12:28:51 -04:00
ref_keeps_node_running.out tty: add ref() so process.stdin.ref() etc. work 2017-02-28 18:44:05 +01:00
repl-dumb-tty.js repl: implement reverse search 2020-04-28 16:00:30 +02:00
repl-dumb-tty.out repl: implement reverse search 2020-04-28 16:00:30 +02: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-assert-colors.js test: stricter assert color test 2020-03-30 10:59:37 -07:00
test-assert-colors.out assert: fix diff color output 2018-03-27 01:20:19 +01:00
test-assert-no-color.js test: refactor test using assert instead of try/catch 2019-08-02 22:24:02 +02:00
test-assert-no-color.out test: assert diff no color 2018-11-13 13:32:56 -08:00
test-assert-position-indicator.js assert: refine assertion message 2019-05-07 20:37:38 +02:00
test-assert-position-indicator.out test: add assert test for position indicator 2019-02-11 22:57:21 -08:00
test-async-wrap-getasyncid-tty.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
test-async-wrap-getasyncid-tty.out test: really test the ttywrap bits of getasyncid 2018-02-22 12:12:41 -05:00
test-fatal-error.js process: inspect error in case of a fatal exception 2019-05-17 08:13:32 +02:00
test-fatal-error.out process: inspect error in case of a fatal exception 2019-05-17 08:13:32 +02:00
test-handle-wrap-isrefed-tty.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +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-readable-tty-keepalive.js stream: fix readable behavior for highWaterMark === 0 2018-08-10 17:16:59 +02:00
test-readable-tty-keepalive.out stream: fix readable behavior for highWaterMark === 0 2018-08-10 17:16:59 +02:00
test-repl-external-module.js repl: check for NODE_REPL_EXTERNAL_MODULE 2020-02-06 02:48:49 +00:00
test-repl-external-module.out repl: check for NODE_REPL_EXTERNAL_MODULE 2020-02-06 02:48:49 +00:00
test-set-raw-mode-reset-process-exit.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-process-exit.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-signal.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-signal.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-stderr-stdout-handle-sigwinch.js test: change isAix to isAIX 2017-07-16 02:24:47 -07:00
test-stderr-stdout-handle-sigwinch.out console: lazy load process.stderr and process.stdout 2018-11-29 01:52:54 +08:00
test-stdin-write.js test: add stdin writable regression test 2018-10-04 09:20:25 -07:00
test-stdin-write.out test: add stdin writable regression test 2018-10-04 09:20:25 -07:00
test-stdout-read.in test: fix pty test hangs on aix 2019-07-20 11:10:27 +02:00
test-stdout-read.js process: allow reading from stdout/stderr sockets 2018-10-04 09:20:24 -07:00
test-stdout-read.out test: fix pty test hangs on aix 2019-07-20 11:10:27 +02:00
test-trace-sigint-disabled.js src,lib: make ^C print a JS stack trace 2020-04-28 16:00:39 +02:00
test-trace-sigint-disabled.out src,lib: make ^C print a JS stack trace 2020-04-28 16:00:39 +02:00
test-trace-sigint-on-idle.js test: fix flaky test-trace-sigint-on-idle 2020-04-28 16:00:46 +02:00
test-trace-sigint-on-idle.out src,lib: make ^C print a JS stack trace 2020-04-28 16:00:39 +02:00
test-trace-sigint.js src,lib: make ^C print a JS stack trace 2020-04-28 16:00:39 +02:00
test-trace-sigint.out src,lib: make ^C print a JS stack trace 2020-04-28 16:00:39 +02:00
test-tty-color-support-warning-2.js tty: do not end in an infinite warning recursion 2020-03-30 10:59:37 -07:00
test-tty-color-support-warning-2.out tty: do not end in an infinite warning recursion 2020-03-30 10:59:37 -07:00
test-tty-color-support-warning.js tty: do not end in an infinite warning recursion 2020-03-30 10:59:37 -07:00
test-tty-color-support-warning.out tty: do not end in an infinite warning recursion 2020-03-30 10:59:37 -07:00
test-tty-color-support.js tty: truecolor check moved before 256 check 2019-12-17 17:06:57 -05:00
test-tty-color-support.out tty: do not end in an infinite warning recursion 2020-03-30 10:59:37 -07:00
test-tty-isatty.js tty,doc: add type-check to isatty 2017-10-22 16:51:10 -07:00
test-tty-isatty.out tty,doc: add type-check to isatty 2017-10-22 16:51:10 -07:00
test-tty-stdin-call-end.js test: add process.stdin.end() TTY regression test 2018-10-04 05:31:46 +02:00
test-tty-stdin-call-end.out test: add process.stdin.end() TTY regression test 2018-10-04 05:31:46 +02:00
test-tty-stdin-end.js src: remove kFlagNoShutdown flag 2018-05-04 00:57:38 +02:00
test-tty-stdin-end.out src: remove kFlagNoShutdown flag 2018-05-04 00:57:38 +02:00
test-tty-stdout-end.js test: remove unused uncaughtException handler 2019-01-27 20:45:42 +01:00
test-tty-stdout-end.out test: fix old tty tests 2016-07-11 15:22:09 +02:00
test-tty-stdout-resize.js tty: fix 'resize' event regression 2017-11-15 12:18:58 +01:00
test-tty-stdout-resize.out tty: fix 'resize' event regression 2017-11-15 12:18:58 +01:00
test-tty-stream-constructors.js test: add coverage to tty module 2017-11-14 17:32:45 -05:00
test-tty-stream-constructors.out test: add coverage to tty module 2017-11-14 17:32:45 -05:00
test-tty-window-size.js tty: make process.binding('tty_wrap') internal 2018-08-29 12:28:51 -04:00
test-tty-window-size.out test: add coverage to tty module 2017-11-14 17:32:45 -05:00
test-tty-wrap.js tty: make process.binding('tty_wrap') internal 2018-08-29 12:28:51 -04:00
test-tty-wrap.out test: fix old tty tests 2016-07-11 15:22:09 +02:00
testcfg.py test: fix pty test hangs on aix 2019-07-20 11:10:27 +02:00