| OLD | NEW |
| 1 # Copyright 2005, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2005, 2007-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 # This file is part of the gdb testsuite. It is intended to test that | 16 # This file is part of the gdb testsuite. It is intended to test that |
| 17 # gdb could correctly handle floating point constant with a suffix. | 17 # gdb could correctly handle floating point constant with a suffix. |
| 18 | 18 |
| 19 if $tracelevel { | |
| 20 strace $tracelevel | |
| 21 } | |
| 22 | |
| 23 set testfile "bfp-test" | 19 set testfile "bfp-test" |
| 24 set srcfile ${testfile}.c | 20 set srcfile ${testfile}.c |
| 25 set binfile ${objdir}/${subdir}/${testfile} | 21 set binfile ${objdir}/${subdir}/${testfile} |
| 26 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
g}] != "" } { | 22 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
g}] != "" } { |
| 27 untested "Couldn't compile ${srcfile}" | 23 untested "Couldn't compile ${srcfile}" |
| 28 return -1 | 24 return -1 |
| 29 } | 25 } |
| 30 | 26 |
| 31 gdb_exit | 27 gdb_exit |
| 32 gdb_start | 28 gdb_start |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 117 |
| 122 set test "set variable b128 = 300.375fff" | 118 set test "set variable b128 = 300.375fff" |
| 123 gdb_test_multiple "set var b128=300.375fff" "$test" { | 119 gdb_test_multiple "set var b128=300.375fff" "$test" { |
| 124 -re "Invalid number.*$gdb_prompt $" { | 120 -re "Invalid number.*$gdb_prompt $" { |
| 125 pass "$test" | 121 pass "$test" |
| 126 } | 122 } |
| 127 -re "$gdb_prompt $" { | 123 -re "$gdb_prompt $" { |
| 128 fail "$test (do not report error on invalid suffix)" | 124 fail "$test (do not report error on invalid suffix)" |
| 129 } | 125 } |
| 130 } | 126 } |
| OLD | NEW |