diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-03-18 17:14:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-18 10:18:22 -0700 |
commit | 59210dd56c25a06a3ec562a07571a96b438e7362 (patch) | |
tree | ce20861016a20bb7de2e217b8f9821781f4ff98c /t/t7813-grep-icase-iso.sh | |
parent | tests: create an interactive gdb session with the 'debug' helper (diff) | |
download | tgif-59210dd56c25a06a3ec562a07571a96b438e7362.tar.xz |
tests: make the 'test_pause' helper work in non-verbose mode
When the 'test_pause' helper function invokes the shell mid-test, it
explicitly redirects the shell's stdout and stderr to file descriptors
3 and 4, which are the stdout and stderr of the tests (i.e. where they
would be connected anyway without those redirections). These file
descriptors are only attached to the terminal in verbose mode, hence
the restriction of 'test_pause' to work only with '-v'.
Redirect the shell's stdout and stderr to the test environment's
original stdout and stderr, allowing it to work properly even in
non-verbose mode, and the restriction can be lifted.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7813-grep-icase-iso.sh')
0 files changed, 0 insertions, 0 deletions