+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.
+
2017-03-08 Pedro Alves <palves@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
clean_restart ${binfile1}
-with_test_prefix "${binfile1}" {
+with_test_prefix "${testfile1}" {
gdb_test "break *main" \
"Breakpoint.*at.* file .*$srcfile1, line .*" \
# start a new debugging session with a different executable.
gdb_load ${binfile2}
-with_test_prefix "${binfile2}" {
+with_test_prefix "${testfile2}" {
gdb_run_cmd
gdb_test "" \
# generate a core file - this used to assert
set corefile [standard_output_file core]
-gdb_test "generate-core-file $corefile" "Saved corefile $corefile"
+gdb_test "generate-core-file $corefile" "Saved corefile $corefile" \
+ "generate-core-file core"
# 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"]/"
# 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'" {