diff options
author | Doug Evans <dje@google.com> | 2015-07-24 15:38:21 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-07-24 15:38:21 -0700 |
commit | 63738bfdb96f654322794384993a6f5d8608aab9 (patch) | |
tree | d9b30758026e9f194828d32dec66c00f5a467743 /gdb/testsuite/gdb.perf | |
parent | 7b606f95c9bcfa1b569fe5d33f7d2a73d39322f4 (diff) | |
download | fsf-binutils-gdb-63738bfdb96f654322794384993a6f5d8608aab9.zip fsf-binutils-gdb-63738bfdb96f654322794384993a6f5d8608aab9.tar.gz fsf-binutils-gdb-63738bfdb96f654322794384993a6f5d8608aab9.tar.bz2 |
PerfTest::assemble functions return results.
gdb/testsuite/ChangeLog:
* lib/perftest.exp (PerfTest::compile): Unconditionally call body.
(PerfTest::startup): New function.
(PerfTest::run): Return result of calling body.
(PerfTest::assemble): Rewrite.
* gdb.perf/backtrace.exp (PerfTest::assemble): Update function result.
* gdb.perf/disassemble.exp (PerfTest::assemble): Ditto.
* gdb.perf/single-step.exp (PerfTest::assemble): Ditto.
* gdb.perf/skip-prologue.exp (PerfTest::assemble): Ditto.
* gdb.perf/solib.exp (PerfTest::assemble): Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.perf')
-rw-r--r-- | gdb/testsuite/gdb.perf/backtrace.exp | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.perf/disassemble.exp | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.perf/single-step.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.perf/skip-prologue.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.perf/solib.exp | 2 |
5 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.perf/backtrace.exp b/gdb/testsuite/gdb.perf/backtrace.exp index a88064b..0ae4b5b 100644 --- a/gdb/testsuite/gdb.perf/backtrace.exp +++ b/gdb/testsuite/gdb.perf/backtrace.exp @@ -58,9 +58,12 @@ PerfTest::assemble { gdb_breakpoint "fun2" gdb_continue_to_breakpoint "fun2" + + return 0 } { global BACKTRACE_DEPTH gdb_test "python BackTrace\($BACKTRACE_DEPTH\).run()" + return 0 } diff --git a/gdb/testsuite/gdb.perf/disassemble.exp b/gdb/testsuite/gdb.perf/disassemble.exp index fe943d8..67e9815 100644 --- a/gdb/testsuite/gdb.perf/disassemble.exp +++ b/gdb/testsuite/gdb.perf/disassemble.exp @@ -52,6 +52,9 @@ PerfTest::assemble { if ![runto_main] { return -1 } + + return 0 } { gdb_test "python Disassemble\(\).run()" + return 0 } diff --git a/gdb/testsuite/gdb.perf/single-step.exp b/gdb/testsuite/gdb.perf/single-step.exp index 74c6de0..d5aa7e2 100644 --- a/gdb/testsuite/gdb.perf/single-step.exp +++ b/gdb/testsuite/gdb.perf/single-step.exp @@ -47,10 +47,12 @@ PerfTest::assemble { fail "Can't run to main" return -1 } + return 0 } { global SINGLE_STEP_COUNT gdb_test_no_output "python SingleStep\(${SINGLE_STEP_COUNT}\).run()" # Terminate the loop. gdb_test "set variable flag = 0" + return 0 } diff --git a/gdb/testsuite/gdb.perf/skip-prologue.exp b/gdb/testsuite/gdb.perf/skip-prologue.exp index 35db047..03d666b 100644 --- a/gdb/testsuite/gdb.perf/skip-prologue.exp +++ b/gdb/testsuite/gdb.perf/skip-prologue.exp @@ -52,6 +52,7 @@ PerfTest::assemble { fail "Can't run to main" return -1 } + return 0 } { global SKIP_PROLOGUE_COUNT @@ -66,4 +67,5 @@ PerfTest::assemble { pass $test } } + return 0 } diff --git a/gdb/testsuite/gdb.perf/solib.exp b/gdb/testsuite/gdb.perf/solib.exp index 4edc2ea..078a372 100644 --- a/gdb/testsuite/gdb.perf/solib.exp +++ b/gdb/testsuite/gdb.perf/solib.exp @@ -80,8 +80,10 @@ PerfTest::assemble { fail "Can't run to main" return -1 } + return 0 } { global SOLIB_COUNT gdb_test_no_output "python SolibLoadUnload\($SOLIB_COUNT\).run()" + return 0 } |