diff options
author | Doug Evans <dje@google.com> | 2012-03-23 22:28:35 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-03-23 22:28:35 +0000 |
commit | 2f4e0a8013ed8ada20de17d2391bff3c8164389d (patch) | |
tree | 0be59387e139b3b120d9cc2dc3cb57201430232c | |
parent | 0afae3cf2e83e8bc2dca4fe865afc85f0362d312 (diff) | |
download | gdb-2f4e0a8013ed8ada20de17d2391bff3c8164389d.zip gdb-2f4e0a8013ed8ada20de17d2391bff3c8164389d.tar.gz gdb-2f4e0a8013ed8ada20de17d2391bff3c8164389d.tar.bz2 |
* lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 32d5289..23fd940 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-03-23 Doug Evans <dje@google.com> + + * lib/gdb.exp (BUILD_DATA_DIRECTORY): New global. + 2012-03-22 Siva Chandra Reddy <sivachandra@google.com> * gdb.python/py-value.cc: Add test case for testing the diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 7287ed3..ccf5e98 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -52,10 +52,13 @@ if ![info exists GDBFLAGS] { } verbose "using GDBFLAGS = $GDBFLAGS" 2 +# Make the build data directory available to tests. +set BUILD_DATA_DIRECTORY "[pwd]/../data-directory" + # INTERNAL_GDBFLAGS contains flags that the testsuite requires. global INTERNAL_GDBFLAGS if ![info exists INTERNAL_GDBFLAGS] { - set INTERNAL_GDBFLAGS "-nw -nx -data-directory [pwd]/../data-directory" + set INTERNAL_GDBFLAGS "-nw -nx -data-directory $BUILD_DATA_DIRECTORY" } # The variable gdb_prompt is a regexp which matches the gdb prompt. |