]> git.lizzy.rs Git - rust.git/commit
Handle gdb command failure gracefully in compiletest
authorvarkor <github@varkor.com>
Fri, 23 Feb 2018 23:54:24 +0000 (23:54 +0000)
committervarkor <github@varkor.com>
Fri, 23 Feb 2018 23:54:24 +0000 (23:54 +0000)
commit70db41cdf74589c957cb930cdd58ebf6bafee5af
tree109e10e637baf9a24f2dce18fd61dc7b8dd98fb7
parent063deba92e44809125a433ca6e6c1ad0993313bf
Handle gdb command failure gracefully in compiletest

Previously, if the gdb command was available, but threw an error, compiletest would panic.  This is obviously not good. Now, gdb is treated as missing if calling `gdb --version` does not output anything on stdout.
src/tools/compiletest/src/main.rs