OLD | NEW |
1 # Copyright 2011-2012 Free Software Foundation, Inc. | 1 # Copyright 2011-2012 Free Software Foundation, Inc. |
2 | 2 |
3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
6 # (at your option) any later version. | 6 # (at your option) any later version. |
7 # | 7 # |
8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
12 # | 12 # |
13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 |
16 load_lib "trace-support.exp" | 16 load_lib "trace-support.exp" |
17 | 17 |
18 set testfile "tspeed" | 18 standard_testfile |
19 set srcfile ${testfile}.c | |
20 set executable $testfile | 19 set executable $testfile |
21 set binfile $objdir/$subdir/$executable | |
22 | 20 |
23 set ipalib $objdir/../gdbserver/libinproctrace.so | 21 set ipalib [get_in_proc_agent] |
24 | 22 |
25 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ | 23 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ |
26 executable [concat {debug nowarnings c} libs=$ipalib]] != "" } { | 24 executable [concat {debug nowarnings c} libs=$ipalib]] != "" } { |
27 untested tspeed.exp | 25 untested tspeed.exp |
28 return -1 | 26 return -1 |
29 } | 27 } |
30 | 28 |
31 # Typically we need a little extra time for this test. | 29 # Typically we need a little extra time for this test. |
32 set timeout 180 | 30 set timeout 180 |
33 | 31 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 prepare_for_trace_test | 120 prepare_for_trace_test |
123 | 121 |
124 gdb_slow_trace_speed_test | 122 gdb_slow_trace_speed_test |
125 | 123 |
126 gdb_fast_trace_speed_test | 124 gdb_fast_trace_speed_test |
127 } | 125 } |
128 | 126 |
129 clean_restart $executable | 127 clean_restart $executable |
130 runto_main | 128 runto_main |
131 | 129 |
132 # We generously give ourselves one "pass" if we successfully | |
133 # detect that this test cannot be run on this target! | |
134 if { ![gdb_target_supports_trace] } then { | 130 if { ![gdb_target_supports_trace] } then { |
135 pass "Current target does not support trace" | 131 unsupported "Current target does not support trace" |
136 return 1; | 132 return 1; |
137 } | 133 } |
138 | 134 |
139 # Body of test encased in a proc so we can return prematurely. | 135 # Body of test encased in a proc so we can return prematurely. |
140 gdb_trace_collection_test | 136 gdb_trace_collection_test |
OLD | NEW |