OLD | NEW |
1 # Copyright 2010-2012 Free Software Foundation, Inc. | 1 # Copyright 2010-2013 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 standard_testfile | 16 standard_testfile |
17 set executable ${testfile} | 17 set executable ${testfile} |
18 | 18 |
19 if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executa
ble {debug}] != "" } { | 19 if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executa
ble {debug}] != "" } { |
20 untested ${testfile}.exp | 20 untested ${testfile}.exp |
21 return -1 | 21 return -1 |
22 } | 22 } |
23 | 23 |
24 clean_restart $executable | 24 clean_restart $executable |
25 | 25 |
26 if ![runto_main] { | 26 if ![runto_main] { |
27 return -1; | 27 return -1 |
28 } | 28 } |
29 | 29 |
30 # `noprint' would not test the full logic of GDB. | 30 # `noprint' would not test the full logic of GDB. |
31 gdb_test "handle SIGUSR1 nostop print pass" \ | 31 gdb_test "handle SIGUSR1 nostop print pass" \ |
32 "\r\nSIGUSR1\[ \t\]+No\[ \t\]+Yes\[ \t\]+Yes\[ \t\].*" | 32 "\r\nSIGUSR1\[ \t\]+No\[ \t\]+Yes\[ \t\]+Yes\[ \t\].*" |
33 | 33 |
34 gdb_test_no_output "set scheduler-locking off" | 34 gdb_test_no_output "set scheduler-locking off" |
35 | 35 |
36 gdb_breakpoint [gdb_get_line_number "step-1"] | 36 gdb_breakpoint [gdb_get_line_number "step-1"] |
37 gdb_test_no_output {set $step1=$bpnum} | 37 gdb_test_no_output {set $step1=$bpnum} |
(...skipping 26 matching lines...) Expand all Loading... |
64 } | 64 } |
65 set step_at $now | 65 set step_at $now |
66 } | 66 } |
67 } | 67 } |
68 if $failed { | 68 if $failed { |
69 return | 69 return |
70 } | 70 } |
71 } | 71 } |
72 # We can never reliably say the racy problematic case has been tested. | 72 # We can never reliably say the racy problematic case has been tested. |
73 pass "step" | 73 pass "step" |
OLD | NEW |