]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.base/tui-layout.exp
update copyright year range in GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / tui-layout.exp
CommitLineData
61baf725 1# Copyright 2010-2017 Free Software Foundation, Inc.
096554ab
JK
2
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
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
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/>.
15
0bb65f1e 16standard_testfile
62cef515 17
0bb65f1e
AA
18set ccopts {debug quiet}
19if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "$binfile" \
20 executable $ccopts] != "" } {
21 # Maybe the compiler can't handle arbitrarily long identfier names.
22 # Try with a shorter version.
23 lappend ccopts "additional_flags=-DSHORT_IDENTIFIERS"
24 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "$binfile" \
25 executable $ccopts] != "" } {
26 untested "compile"
27 return -1
28 }
096554ab
JK
29}
30
0bb65f1e
AA
31clean_restart "$binfile"
32
ebe3b578
AB
33if {[skip_tui_tests]} {
34 # TUI support is disabled. Check for error message.
35 gdb_test "layout asm" "Undefined command: \"layout\". Try \"help\"."
36 return
37}
38
39# Just check the command does not cause gdb to crash.
096554ab 40gdb_test "layout asm"