OLD | NEW |
1 # Copyright 2010-2012 Free Software Foundation, Inc. | 1 # Copyright 2010-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 if $tracelevel then { | |
17 strace $tracelevel | |
18 } | |
19 | |
20 | 16 |
21 if { ![istarget i?86-*-linux*] && ![istarget x86_64-*-linux* ] } { | 17 if { ![istarget i?86-*-linux*] && ![istarget x86_64-*-linux* ] } { |
22 verbose "Skipping system register gcore tests." | 18 verbose "Skipping system register gcore tests." |
23 return | 19 return |
24 } | 20 } |
25 | 21 |
26 set testfile "system-gcore" | 22 set testfile "system-gcore" |
27 set srcfile gcore.c | 23 set srcfile gcore.c |
28 set binfile ${objdir}/${subdir}/${testfile} | 24 set binfile ${objdir}/${subdir}/${testfile} |
29 | 25 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } else { | 221 } else { |
226 fail "corefile restored stack array" | 222 fail "corefile restored stack array" |
227 } | 223 } |
228 | 224 |
229 set post_corefile_backtrace [capture_command_output "backtrace" ""] | 225 set post_corefile_backtrace [capture_command_output "backtrace" ""] |
230 if ![string compare $pre_corefile_backtrace $post_corefile_backtrace] { | 226 if ![string compare $pre_corefile_backtrace $post_corefile_backtrace] { |
231 pass "corefile restored backtrace" | 227 pass "corefile restored backtrace" |
232 } else { | 228 } else { |
233 fail "corefile restored backtrace" | 229 fail "corefile restored backtrace" |
234 } | 230 } |
OLD | NEW |