diff options
author | Yao Qi <yao@codesourcery.com> | 2013-03-13 03:25:13 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-03-13 03:25:13 +0000 |
commit | 045dd51fd8dd7ae16b74d5154156b2d984d021b9 (patch) | |
tree | 0a65190fdcf8a5f590a319331aa35a3a99d58c8f /gdb | |
parent | 411c1c2bb7369b3d850b83c59b1aecbaac19f4f0 (diff) | |
download | gdb-045dd51fd8dd7ae16b74d5154156b2d984d021b9.zip gdb-045dd51fd8dd7ae16b74d5154156b2d984d021b9.tar.gz gdb-045dd51fd8dd7ae16b74d5154156b2d984d021b9.tar.bz2 |
gdb/testsuite/
2013-03-13 Yao Qi <yao@codesourcery.com>
* gdb.trace/tsv.exp: Remove code unrelated to testing TSV.
Replace some "gdb_test" with "gdb_test_no_output".
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.trace/tsv.exp | 20 |
2 files changed, 9 insertions, 16 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8488ca7..588b0b3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-03-13 Yao Qi <yao@codesourcery.com> + + * gdb.trace/tsv.exp: Remove code unrelated to testing TSV. + Replace some "gdb_test" with "gdb_test_no_output". + 2013-03-12 Paul Hilfinger <hilfingr@adacore.com> * gdb.ada/expr_delims.exp: New file. diff --git a/gdb/testsuite/gdb.trace/tsv.exp b/gdb/testsuite/gdb.trace/tsv.exp index 47d66ad..bab0a10 100644 --- a/gdb/testsuite/gdb.trace/tsv.exp +++ b/gdb/testsuite/gdb.trace/tsv.exp @@ -110,22 +110,10 @@ if { ![gdb_target_supports_trace] } then { return 1; } -# define relative source line numbers: -# all subsequent line numbers are relative to this first one (baseline) - -set baseline [gdb_find_recursion_test_baseline $srcfile]; -if { $baseline == -1 } then { - fail "Could not find gdb_recursion_test function" - return; -} - -set testline1 [expr $baseline + 7] - gdb_delete_tracepoints set trcpt1 [gdb_gettpnum gdb_c_test]; -set trcpt2 [gdb_gettpnum gdb_asm_test]; -set trcpt3 [gdb_gettpnum $testline1]; -if { $trcpt1 <= 0 || $trcpt2 <= 0 || $trcpt3 <= 0 } then { + +if { $trcpt1 <= 0 } then { fail "setting tracepoints" return; } @@ -138,7 +126,7 @@ gdb_trace_setactions "collect tsv for first tracepoint" \ "$trcpt1" \ "collect \$tvar5 += 1" "^$" -gdb_test "tstart" ".*" "" +gdb_test_no_output "tstart" "" gdb_test "print \$tvar5" " = 15" \ "Print a trace state variable at start of run" @@ -152,7 +140,7 @@ gdb_test "continue" \ gdb_test "print \$tvar5" " = 16" \ "Print a trace state variable during run" -gdb_test "tstop" ".*" "" +gdb_test_no_output "tstop" "" gdb_test "print \$tvar5" " = 16" \ "Print a trace state variable after run" |