diff options
| author | bors <bors@rust-lang.org> | 2020-11-02 13:07:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-02 13:07:01 +0000 |
| commit | 499ebcfdf3b09a646154f321b7c28f5105e4dbf7 (patch) | |
| tree | c0032917dcdace687e8949d290d6aa40fadee8cb | |
| parent | 4051473c8b5158984a5253d1b5faad6a94de7682 (diff) | |
| parent | 0af9f7edb74639b9cf0eed8bd1d2e5b80880fd9a (diff) | |
| download | rust-499ebcfdf3b09a646154f321b7c28f5105e4dbf7.tar.gz rust-499ebcfdf3b09a646154f321b7c28f5105e4dbf7.zip | |
Auto merge of #78667 - pietroalbini:lldb-unbuffered, r=Mark-Simulacrum
Try running lldb_batchmode.py with PYTHONUNBUFFERED When reporting fatal errors, LLVM calls abort() to exit the program. There is a chance that might interfere with Python printing stuff to stdout, as by default it relies on buffering to increase performance. This commit tries to disable Python buffering, to hopefully get useful logs while debugging #78665.
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 19ddcf3a010..d46f905e6cc 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1166,6 +1166,7 @@ impl<'test> TestCx<'test> { .arg(&lldb_script_path) .arg(test_executable) .arg(debugger_script) + .env("PYTHONUNBUFFERED", "1") // Help debugging #78665 .env("PYTHONPATH", self.config.lldb_python_dir.as_ref().unwrap()), ) } |
