Home
last modified time | relevance | path

Searched refs:old_stderr (Results 1 – 19 of 19) sorted by relevance

/external/crosvm/src/
Dpanic_hook.rs22 let old_stderr = dup(STDERR_FILENO); in redirect_stderr() localVariable
23 if old_stderr == -1 { in redirect_stderr()
41 Some((File::from_raw_fd(fds[0]), File::from_raw_fd(old_stderr))) in redirect_stderr()
62 let (mut read_file, old_stderr) = match redirect_stderr() { in log_panic_info()
76 if !restore_stderr(old_stderr) { in log_panic_info()
/external/libusb/tests/
Dtestlib.c88 if (ctx->old_stderr != INVALID_FD) { in cleanup_test_output()
89 IGNORE_RETVAL(dup2(ctx->old_stderr, STDERR_FILENO)); in cleanup_test_output()
90 ctx->old_stderr = INVALID_FD; in cleanup_test_output()
120 ctx->old_stderr = dup(STDERR_FILENO); in setup_test_output()
121 if (ctx->old_stderr < 0) { in setup_test_output()
122 ctx->old_stderr = INVALID_FD; in setup_test_output()
184 ctx.old_stderr = INVALID_FD; in libusb_testlib_run_tests()
Dlibusb_testlib.h57 int old_stderr; member
/external/python/apitools/apitools/gen/
Dtest_utils.py50 old_stdout, old_stderr = sys.stdout, sys.stderr
55 sys.stdout, sys.stderr = old_stdout, old_stderr
/external/bcc/tools/
Drunqlen.py96 old_stderr = dup(2)
110 dup(old_stderr)
111 close(old_stderr)
/external/python/cpython2/Lib/ctypes/test/
Dtest_random_things.py40 old_stderr = sys.stderr
45 sys.stderr = old_stderr
/external/python/cpython3/Lib/ctypes/test/
Dtest_random_things.py40 old_stderr = sys.stderr
45 sys.stderr = old_stderr
/external/python/setuptools/setuptools/tests/
Dcontexts.py60 old_stderr = sys.stderr
69 sys.stderr = old_stderr
Dtest_sdist.py43 old_stdout, old_stderr = sys.stdout, sys.stderr
48 sys.stdout, sys.stderr = old_stdout, old_stderr
Dtest_manifest.py44 old_stdout, old_stderr = sys.stdout, sys.stderr
49 sys.stdout, sys.stderr = old_stdout, old_stderr
/external/python/cffi/testing/
Dsupport.py30 self.old_stderr = sys.stderr
34 sys.stderr = self.old_stderr
/external/antlr/runtime/Python/
Dxmlrunner.py181 old_stderr = sys.stderr
197 sys.stderr = old_stderr
/external/python/cffi/testing/cffi0/
Dtest_function.py228 old_stderr = sys.stderr
234 sys.stderr = old_stderr
/external/python/cpython3/PC/bdist_wininst/
Dinstall.c802 HANDLE redirected, old_stderr, old_stdout; in run_installscript() local
821 old_stderr = GetStdHandle(STD_ERROR_HANDLE); in run_installscript()
833 SetStdHandle(STD_ERROR_HANDLE, old_stderr); in run_installscript()
887 HANDLE old_stderr = GetStdHandle(STD_ERROR_HANDLE); in run_simple_script() local
901 SetStdHandle(STD_ERROR_HANDLE, old_stderr); in run_simple_script()
/external/python/cpython2/PC/bdist_wininst/
Dinstall.c761 HANDLE redirected, old_stderr, old_stdout; in run_installscript() local
780 old_stderr = GetStdHandle(STD_ERROR_HANDLE); in run_installscript()
792 SetStdHandle(STD_ERROR_HANDLE, old_stderr); in run_installscript()
844 HANDLE old_stderr = GetStdHandle(STD_ERROR_HANDLE); in run_simple_script() local
858 SetStdHandle(STD_ERROR_HANDLE, old_stderr); in run_simple_script()
/external/python/cpython3/Lib/unittest/test/
Dtest_runner.py997 old_stderr = sys.stderr
1004 sys.stderr = old_stderr
/external/python/cpython2/Lib/test/
Dtest_argparse.py107 old_stderr = sys.stderr
117 setattr(result, key, old_stderr)
126 sys.stderr = old_stderr
/external/python/cpython3/Lib/test/
Dtest_argparse.py92 old_stderr = sys.stderr
102 setattr(result, key, old_stderr)
111 sys.stderr = old_stderr
/external/python/cpython2/Lib/email/test/
Dtest_email.py248 old_stderr = sys.stderr
254 sys.stderr = old_stderr