diff options
author | Tom de Vries <tdevries@suse.de> | 2020-04-24 13:21:49 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-04-24 13:21:49 +0200 |
commit | 4e86f6e7478e40a288ec6567fa7f3b4ef0f8d516 (patch) | |
tree | 000e5c0e396f707719825c30a88240ac07085753 | |
parent | 2016d3e60f871ea77fb089b5bc7bcfacffab1eab (diff) | |
download | gdb-4e86f6e7478e40a288ec6567fa7f3b4ef0f8d516.zip gdb-4e86f6e7478e40a288ec6567fa7f3b4ef0f8d516.tar.gz gdb-4e86f6e7478e40a288ec6567fa7f3b4ef0f8d516.tar.bz2 |
[gdb/testsuite] Compile gdb.dwarf2/dw2-error.exp quietly
When running test-case gdb.dwarf2/dw2-error.exp with target board
cc-with-gdb-index, we get:
...
Running src/gdb/testsuite/gdb.dwarf2/dw2-error.exp ...
gdb compile failed, Dwarf Error: wrong version in compilation unit header \
(is 153, should be 2, 3, 4 or 5) [in module \
build/gdb/testsuite/outputs/gdb.dwarf2/dw2-error/.tmp/dw2-error]
...
and similar for target board cc-with-debug-names.
Be less verbose by adding "quiet" to the compile flags.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-04-24 Tom de Vries <tdevries@suse.de>
* gdb.dwarf2/dw2-error.exp: Add quiet to compile flags.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-error.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ecccb61..8007f48 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2020-04-24 Tom de Vries <tdevries@suse.de> + * gdb.dwarf2/dw2-error.exp: Add quiet to compile flags. + +2020-04-24 Tom de Vries <tdevries@suse.de> + * lib/gdb.exp (default_gdb_start): Handle eof. (clean_restart): Detect and handle gdb_start failure. Return -1 upon failure. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-error.exp index bd2802f2..5583e36 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-error.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-error.exp @@ -29,7 +29,7 @@ if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } { # We can't use prepare_for_testing here because we need to check the # 'file' command's output. -if {[build_executable $testfile.exp $testfile $srcfile {nodebug}]} { +if {[build_executable $testfile.exp $testfile $srcfile {nodebug quiet}]} { return -1 } |