diff options
author | Tom Tromey <tromey@redhat.com> | 2013-08-23 12:18:57 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-11-04 11:02:08 -0700 |
commit | 1e537771557f684cafb8247ad4ec03d38ac4deb5 (patch) | |
tree | 880b685524af73d17a0eb4caa96694e951dca79b /gdb/testsuite/gdb.base/fullname.exp | |
parent | b44b82afd9ec85bff726e294b0d0065efb5179e0 (diff) | |
download | gdb-1e537771557f684cafb8247ad4ec03d38ac4deb5.zip gdb-1e537771557f684cafb8247ad4ec03d38ac4deb5.tar.gz gdb-1e537771557f684cafb8247ad4ec03d38ac4deb5.tar.bz2 |
introduce relative_filename and use it
This introduces a new relative_filename proc to gdb.exp and changes
some tests to use it. This helps make these tests parallel-safe.
2013-11-04 Tom Tromey <tromey@redhat.com>
* gdb.base/fullname.exp: Use standard_output_file,
relative_filename.
* gdb.base/hashline1.exp: Use standard_testfile,
standard_output_file, relative_filename, clean_restart.
* gdb.base/hashline2.exp: Use standard_testfile,
standard_output_file.
* gdb.base/hashline3.exp: Use standard_testfile,
standard_output_file, relative_filename.
* lib/gdb.exp (relative_filename): New proc.
Diffstat (limited to 'gdb/testsuite/gdb.base/fullname.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/fullname.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/fullname.exp b/gdb/testsuite/gdb.base/fullname.exp index 32f6ea4..2754f59 100644 --- a/gdb/testsuite/gdb.base/fullname.exp +++ b/gdb/testsuite/gdb.base/fullname.exp @@ -70,7 +70,8 @@ if { [gdb_breakpoint [standard_output_file tmp-${srcfile}]:${line} {no-message}] } # Build the test executable using a relative path. -if { [gdb_compile "${subdir}/tmp-${srcfile}" "${binfile}" executable {debug}] != "" } { +if { [gdb_compile [relative_filename [pwd] [standard_output_file tmp-${srcfile}]] \ + "${binfile}" executable {debug}] != "" } { return -1 } @@ -99,7 +100,7 @@ if { [gdb_breakpoint [standard_output_file tmp-${srcfile}]:${line} {no-message}] # we'll run GDB from. set save_pwd [pwd] -cd ${subdir} +cd [standard_output_file {}] if { [gdb_compile [standard_output_file tmp-${srcfile}] "${testfile}" \ executable {debug}] != "" } { cd $save_pwd |