aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-03-08 12:46:44 +0000
committerPedro Alves <palves@redhat.com>2017-03-08 12:46:44 +0000
commitdc9366eb0592157e2125967690f0aed61b17bcf7 (patch)
treed42e9b944d2a9bec66448d419b2a775fb5e28e87 /gdb/testsuite/gdb.python
parent6e5d74e74756fafe59e8198c4cc462cf7c57e12c (diff)
downloadgdb-dc9366eb0592157e2125967690f0aed61b17bcf7.zip
gdb-dc9366eb0592157e2125967690f0aed61b17bcf7.tar.gz
gdb-dc9366eb0592157e2125967690f0aed61b17bcf7.tar.bz2
gdb: Fix a few unstable test names
Avoid putting unstable path names in test messages, in order to avoid spurious testrun result diffs like: [....] -PASS: gdb.base/break-fun-addr.exp: /home/pedro/gdb/test-build1/gdb/testsuite/outputs/gdb.base/break-fun-addr/break-fun-addr1: break *main +PASS: gdb.base/break-fun-addr.exp: /home/pedro/gdb/test-build2/gdb/testsuite/outputs/gdb.base/break-fun-addr/break-fun-addr1: break *main [....] gdb/ChangeLog: 2017-03-08 Pedro Alves <palves@redhat.com> * gdb.base/break-fun-addr.exp: Use $testfile1/$testfile2 for test prefix instead of $binfile1/$binfile2. * gdb.btrace/gcore.exp: Use "core" instead of unstable path name in test message. * gdb.python/py-completion.exp: Use "load python file" as test messages instead of unstable path names.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-completion.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-completion.exp b/gdb/testsuite/gdb.python/py-completion.exp
index bb7e775..b99afa7 100644
--- a/gdb/testsuite/gdb.python/py-completion.exp
+++ b/gdb/testsuite/gdb.python/py-completion.exp
@@ -23,7 +23,8 @@ gdb_start
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-gdb_test_no_output "source ${srcdir}/${subdir}/${testfile}.py"
+gdb_test_no_output "source ${srcdir}/${subdir}/${testfile}.py" \
+ "load python file"
# Create a temporary directory
set testdir "[standard_output_file "py-completion-testdir"]/"
@@ -73,7 +74,8 @@ gdb_test_multiple "" "completefilecommandcond completion" {
# with the expected output of the below tests in a buggy gdb.
gdb_exit
gdb_start
-gdb_test_no_output "source ${srcdir}/${subdir}/${testfile}.py"
+gdb_test_no_output "source ${srcdir}/${subdir}/${testfile}.py" \
+ "load python file again"
gdb_test_sequence "complete completel" \
"list all completions of 'complete completel'" {