Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: gdb/testsuite/gdb.trace/status-stop.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.trace/stap-trace.exp ('k') | gdb/testsuite/gdb.trace/strace.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.trace/status-stop.exp
diff --git a/gdb/testsuite/gdb.trace/status-stop.exp b/gdb/testsuite/gdb.trace/status-stop.exp
index 9c7e91557d2e7d5d787082c8adb1745e6fff3190..61afdd5936d249c87b01839ab13769e37c464f4e 100644
--- a/gdb/testsuite/gdb.trace/status-stop.exp
+++ b/gdb/testsuite/gdb.trace/status-stop.exp
@@ -14,10 +14,8 @@
load_lib "trace-support.exp";
-set testfile "status-stop"
+standard_testfile
set executable $testfile
-set srcfile ${testfile}.c
-set binfile $objdir/$subdir/$testfile
set expfile $testfile.exp
@@ -39,19 +37,14 @@ if ![gdb_target_supports_trace] {
# Verify that the sequence of commands "tstart tstop tstart" works well.
-proc test_tstart_tstop_tstart { } {
+proc test_tstart_tstop_tstart { } { with_test_prefix "tstart_tstop_tstart" {
global executable
- global pf_prefix
global hex
- set old_pf_prefix $pf_prefix
- set pf_prefix "$pf_prefix tstart_tstop_tstart:"
-
# Start with a fresh gdb.
clean_restart ${executable}
if ![runto_main] {
fail "Can't run to main"
- set pf_prefix $old_pf_prefix
return -1
}
@@ -64,25 +57,18 @@ proc test_tstart_tstop_tstart { } {
gdb_test_no_output "tstop"
gdb_test_no_output "tstart"
-
- set pf_prefix $old_pf_prefix
-}
+}}
# Verify the sequence of commands "tstart tstart" works well.
-proc test_tstart_tstart { } {
+proc test_tstart_tstart { } { with_test_prefix "tstart_tstart" {
global executable
- global pf_prefix
global hex
- set old_pf_prefix $pf_prefix
- set pf_prefix "$pf_prefix tstart_tstart:"
-
# Start with a fresh gdb.
clean_restart ${executable}
if ![runto_main] {
fail "Can't run to main"
- set pf_prefix $old_pf_prefix
return -1
}
@@ -90,25 +76,18 @@ proc test_tstart_tstart { } {
gdb_test_no_output "tstart"
gdb_test "tstart" "" "tstart again" "A trace is running already. Start a new run\\? \\(y or n\\) " "y"
-
- set pf_prefix $old_pf_prefix
-}
+}}
# Verify that trace stops clearly when trace buffer is full.
-proc test_buffer_full_tstart { } {
+proc test_buffer_full_tstart { } { with_test_prefix "buffer_full_tstart" {
global executable
- global pf_prefix
global hex
- set old_pf_prefix $pf_prefix
- set pf_prefix "$pf_prefix buffer_full_tstart:"
-
# Start with a fresh gdb.
clean_restart ${executable}
if ![runto_main] {
fail "Can't run to main"
- set pf_prefix $old_pf_prefix
return -1
}
@@ -123,12 +102,10 @@ proc test_buffer_full_tstart { } {
gdb_test "tstatus" ".*buffer was full.*"
gdb_test_no_output "tstart"
-
- set old_pf_prefix $pf_prefix
-}
+}}
test_tstart_tstop_tstart
test_tstart_tstart
-test_buffer_full_tstart
+test_buffer_full_tstart
« no previous file with comments | « gdb/testsuite/gdb.trace/stap-trace.exp ('k') | gdb/testsuite/gdb.trace/strace.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698