diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-26 18:25:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-26 18:25:19 +0000 |
commit | 497a5eb0393355660ba219e968dd5ef655d081b5 (patch) | |
tree | 105e205dfc7e0d749c9b6ae095b03f3fa2c1b7eb /gdb/testsuite/gdb.trace/save-trace.exp | |
parent | 7686c074591882316c738d09af170b43f42f3ffe (diff) | |
download | gdb-497a5eb0393355660ba219e968dd5ef655d081b5.zip gdb-497a5eb0393355660ba219e968dd5ef655d081b5.tar.gz gdb-497a5eb0393355660ba219e968dd5ef655d081b5.tar.bz2 |
* gdb.trace/actions.exp: Use standard_testfile.
* gdb.trace/ax.exp: Use standard_testfile.
* gdb.trace/backtrace.exp: Use standard_testfile.
* gdb.trace/change-loc.exp: Use standard_testfile.
* gdb.trace/circ.exp: Use standard_testfile, prepare_for_testing.
* gdb.trace/collection.exp: Use standard_testfile,
prepare_for_testing.
* gdb.trace/deltrace.exp: Use standard_testfile.
* gdb.trace/disconnected-tracing.exp: Use standard_testfile.
* gdb.trace/ftrace.exp: Use standard_testfile.
* gdb.trace/infotrace.exp: Use standard_testfile.
* gdb.trace/packetlen.exp: Use standard_testfile.
* gdb.trace/passc-dyn.exp: Use standard_testfile.
* gdb.trace/passcount.exp: Use standard_testfile.
* gdb.trace/pending.exp: Use standard_testfile.
* gdb.trace/report.exp: Use standard_testfile.
* gdb.trace/save-trace.exp: Use standard_testfile.
* gdb.trace/stap-trace.exp: Use standard_testfile.
* gdb.trace/status-stop.exp: Use standard_testfile.
* gdb.trace/strace.exp: Use standard_testfile.
* gdb.trace/tfile.exp: Use standard_testfile.
* gdb.trace/tfind.exp: Use standard_testfile.
* gdb.trace/trace-break.exp: Use standard_testfile.
* gdb.trace/trace-mt.exp: Use standard_testfile.
* gdb.trace/tracecmd.exp: Use standard_testfile.
* gdb.trace/tspeed.exp: Use standard_testfile.
* gdb.trace/tstatus.exp: Use standard_testfile.
* gdb.trace/tsv.exp: Use standard_testfile.
* gdb.trace/unavailable.exp: Use standard_testfile,
prepare_for_testing.
* gdb.trace/while-dyn.exp: Use standard_testfile.
* gdb.trace/while-stepping.exp: Use standard_testfile.
Diffstat (limited to 'gdb/testsuite/gdb.trace/save-trace.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/save-trace.exp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.trace/save-trace.exp b/gdb/testsuite/gdb.trace/save-trace.exp index e5cada7..2a9061a 100644 --- a/gdb/testsuite/gdb.trace/save-trace.exp +++ b/gdb/testsuite/gdb.trace/save-trace.exp @@ -21,9 +21,7 @@ load_lib "trace-support.exp"; gdb_exit gdb_start -set testfile "actions" -set srcfile ${testfile}.c -set binfile $objdir/$subdir/save-trace +standard_testfile actions.c if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ executable {debug nowarnings}] != "" } { untested save-trace.exp @@ -136,20 +134,21 @@ remote_file host delete savetrace.tr # 10.3 repeat with a path to the file -set escapedfilename [string_to_regexp $objdir/savetrace.tr] -remote_file host delete $objdir/savetrace.tr -gdb_test "save-tracepoints $objdir/savetrace.tr" \ +set trace_file_name [standard_output_file savetrace.tr] +set escapedfilename [string_to_regexp $trace_file_name] +remote_file host delete $trace_file_name +gdb_test "save-tracepoints $trace_file_name" \ "Saved to file '${escapedfilename}'." \ "10.3: save tracepoint definitions, full path" gdb_delete_tracepoints gdb_test_no_output "set default-collect" "10.3: clear default-collect" gdb_test "info tracepoints" "No tracepoints." "10.3: delete tracepoints" -gdb_test "source $objdir/savetrace.tr" \ +gdb_test "source $trace_file_name" \ "Tracepoint \[0-9\]+ at .*" \ "10.4: read saved tracepoints, full path" gdb_verify_tracepoints "10.3: verify recovered tracepoints, full path"; -remote_file host delete $objdir/savetrace.tr +remote_file host delete $trace_file_name # 10.5 invalid filename # [deferred -- not sure what a good invalid filename would be] |