+2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.base/maint.exp: Remove full paths from test names.
+ * gdb.base/prelink.exp, gdb.cp/cp-relocate.exp,
+ gdb.xml/tdesc-errors.exp, gdb.xml/tdesc-xinclude.exp: Likewise.
+
2007-02-27 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/catch_ex.exp: Fix a couple of copy/paste typos.
# Check that maint print msymbols allows relative pathnames
set mydir [pwd]
-gdb_test "cd ${objdir}" "Working directory [string_to_regexp ${objdir}]\..*"
+gdb_test "cd ${objdir}" "Working directory [string_to_regexp ${objdir}]\..*" "cd to objdir"
gdb_test_multiple "maint print msymbols msymbols_output2 ${subdir}/${testfile}" "maint print msymbols" {
-re "^maint print msymbols msymbols_output2 \[^\n\]*\r\n$gdb_prompt $" {
gdb_test_multiple "shell ls msymbols_output2" "maint print msymbols" {
fail "(timeout) maint print msymbols"
}
}
-gdb_test "cd ${mydir}" "Working directory [string_to_regexp ${mydir}]\..*"
+gdb_test "cd ${mydir}" "Working directory [string_to_regexp ${mydir}]\..*" "cd to mydir"
send_gdb "maint print symbols\n"
gdb_expect {
}
if {[catch "system \"prelink -uN ${libfile}\""] != 0} {
- untested "${libfile} was not prelinked, maybe system libraries are not prelinked?"
+ untested "${testfile}.so was not prelinked, maybe system libraries are not prelinked?"
return 0
}
catch "system \"prelink -qNR ${libfile}\""
gdb_test "add-symbol-file ${binfile} 0 -s ${func1_sec} 0x40000 -s ${func2_sec} 0x80000" \
"Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)" \
- "add-symbol-file ${binfile}" \
+ "add-symbol-file ${testfile}.o" \
"add symbol table from file \".*${testfile}\\.o\" at.*\\(y or n\\) " \
"y"
# Anchor the test output, so that error messages are detected.
set cmd "set tdesc filename $srcdir/$subdir/$srcfile"
- set msg $cmd
+ set msg "set tdesc filename $subdir/$srcfile"
set cmd_regex [string_to_regexp $cmd]
gdb_test_multiple $cmd $msg {
-re "^$cmd_regex\r\n$errmsg$gdb_prompt $" {
# Anchor the test output, so that error messages are detected.
set cmd "set tdesc filename $srcdir/$subdir/$srcfile"
- set msg $cmd
+ set msg "set tdesc filename $subdir/$srcfile"
set cmd_regex [string_to_regexp $cmd]
gdb_test_multiple $cmd $msg {
-re "^$cmd_regex\r\n$errmsg$gdb_prompt $" {