aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-09-14 09:54:47 +0200
committerTom de Vries <tdevries@suse.de>2020-09-14 09:54:47 +0200
commitee6372f2112b53d7233e8565c52c2429440db488 (patch)
tree1ed2f7995af36fe471a404f3c2d20ab20c39d7b1 /gdb/testsuite
parent1e95aa3b80230aa05c5fc95512a4ddd90d6aaf00 (diff)
downloadgdb-ee6372f2112b53d7233e8565c52c2429440db488.zip
gdb-ee6372f2112b53d7233e8565c52c2429440db488.tar.gz
gdb-ee6372f2112b53d7233e8565c52c2429440db488.tar.bz2
[gdb/testsuite] Fix PATH warning in gdb.rust/traits.exp
When running the rust test-cases with release 1.36.0 and LLVM version 7.0, I run into: ... (gdb) UNTESTED: gdb.rust/traits.exp: could not read \ outputs/gdb.rust/traits/traits with readelf PATH: gdb.rust/traits.exp: could not read \ outputs/gdb.rust/traits/traits with readelf ... Fix the PATH warning by printing [file tail $binfile] instead $binfile. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-09-14 Tom de Vries <tdevries@suse.de> * gdb.rust/traits.exp: Fix PATH warning.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.rust/traits.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 230def4..d83a2c6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-09-14 Tom de Vries <tdevries@suse.de>
+
+ * gdb.rust/traits.exp: Fix PATH warning.
+
2020-09-13 Pedro Alves <pedro@palves.net>
* gdb.base/catch-follow-exec.c (main): Add explicit return
diff --git a/gdb/testsuite/gdb.rust/traits.exp b/gdb/testsuite/gdb.rust/traits.exp
index ac2b450..41e58e1 100644
--- a/gdb/testsuite/gdb.rust/traits.exp
+++ b/gdb/testsuite/gdb.rust/traits.exp
@@ -28,7 +28,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {
set readelf_program [gdb_find_readelf]
set result [catch "exec $readelf_program --debug-dump=info $binfile" output]
if {$result != 0} {
- untested "could not read ${binfile} with readelf"
+ untested "could not read [file tail ${binfile}] with readelf"
return
}