aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/cache.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-07-24 15:28:46 -0700
committerDoug Evans <dje@google.com>2015-07-24 15:28:46 -0700
commit35baa57fcfb50f7db24f7850ec9e34f4bc25b45c (patch)
tree39952a084573a578b8cacc79edf5b18b3cb98e0d /gdb/testsuite/lib/cache.exp
parent6ebea266fd0a7a56c90db3ab6237ff9f6c919747 (diff)
downloadgdb-35baa57fcfb50f7db24f7850ec9e34f4bc25b45c.zip
gdb-35baa57fcfb50f7db24f7850ec9e34f4bc25b45c.tar.gz
gdb-35baa57fcfb50f7db24f7850ec9e34f4bc25b45c.tar.bz2
Add parallel build support for perf tests.
gdb/testsuite/ChangeLog: * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL. (workers/%.worker, build-perf): New rule. (GDB_PERFTEST_MODE): New variable. (check-perf): Use it. (clean): Clean up gdb.perf parallel build subdirs. * lib/build-piece.exp: New file. * lib/cache.exp (gdb_do_cache): Include $GDB_PARALLEL in path name. * lib/gdb.exp (standard_output_file): Include $GDB_PARALLEL in path name. (standard_temp_file): Ditto. (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs of $GDB_PARALLEL.
Diffstat (limited to 'gdb/testsuite/lib/cache.exp')
-rw-r--r--gdb/testsuite/lib/cache.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/cache.exp b/gdb/testsuite/lib/cache.exp
index 8df04b9..9565b39 100644
--- a/gdb/testsuite/lib/cache.exp
+++ b/gdb/testsuite/lib/cache.exp
@@ -35,7 +35,7 @@ proc gdb_do_cache {name} {
}
if {[info exists GDB_PARALLEL]} {
- set cache_filename [file join $objdir cache $cache_name]
+ set cache_filename [file join $objdir $GDB_PARALLEL cache $cache_name]
if {[file exists $cache_filename]} {
set fd [open $cache_filename]
set gdb_data_cache($cache_name) [read -nonewline $fd]