OLD | NEW |
1 # Copyright 1998-1999, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1998-1999, 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 was written by Elena Zannoni (ezannoni@cygnus.com) | 16 # This file was written by Elena Zannoni (ezannoni@cygnus.com) |
17 | 17 |
18 # This file is part of the gdb testsuite | 18 # This file is part of the gdb testsuite |
19 | 19 |
20 # | 20 # |
21 # test of evaluation of conditional expressions, with constants and | 21 # test of evaluation of conditional expressions, with constants and |
22 # variables. Using the print and the whatis command | 22 # variables. Using the print and the whatis command |
23 # written with the only purpose in mind to cover the holes in the | 23 # written with the only purpose in mind to cover the holes in the |
24 # eval.c file | 24 # eval.c file |
25 # | 25 # |
26 # source file "int-type.c" | 26 # source file "int-type.c" |
27 # | 27 # |
28 | 28 |
29 | 29 |
30 if $tracelevel then { | |
31 strace $tracelevel | |
32 } | |
33 | |
34 # Check to see if we have an executable to test. If not, then either we | 30 # Check to see if we have an executable to test. If not, then either we |
35 # haven't tried to compile one, or the compilation failed for some reason. | 31 # haven't tried to compile one, or the compilation failed for some reason. |
36 # In either case, just notify the user and skip the tests in this file. | 32 # In either case, just notify the user and skip the tests in this file. |
37 | 33 |
38 set testfile "int-type" | 34 set testfile "int-type" |
39 set srcfile ${testfile}.c | 35 set srcfile ${testfile}.c |
40 set binfile ${objdir}/${subdir}/${testfile} | 36 set binfile ${objdir}/${subdir}/${testfile} |
41 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug nowarnings}] != "" } { | 37 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug nowarnings}] != "" } { |
42 untested cond-expr.exp | 38 untested cond-expr.exp |
43 return -1 | 39 return -1 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 75 |
80 | 76 |
81 | 77 |
82 | 78 |
83 | 79 |
84 | 80 |
85 | 81 |
86 | 82 |
87 | 83 |
88 | 84 |
OLD | NEW |