* gdb.base/help.exp: Remove testing of individual command help text,
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / term.exp
CommitLineData
0b302171
JB
1# Copyright 1988, 1990-1992, 1994-1997, 1999, 2007-2012 Free Software
2# Foundation, Inc.
c906108c
SS
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
e22f8b7c 6# the Free Software Foundation; either version 3 of the License, or
c906108c 7# (at your option) any later version.
e22f8b7c 8#
c906108c
SS
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
e22f8b7c 13#
c906108c 14# You should have received a copy of the GNU General Public License
e22f8b7c 15# along with this program. If not, see <http://www.gnu.org/licenses/>.
c906108c 16
676a0442
DJ
17# Don't try this for remote targets.
18if [is_remote target] then {
c906108c
SS
19 continue
20}
21
5f8cefd7
PA
22if { [prepare_for_testing term.exp term term.c] } {
23 return -1
c1d88655
UW
24}
25
5f8cefd7
PA
26# Once before running the program.
27gdb_test "info terminal" \
28 "No saved terminal information.*" \
29 "test info terminal"
c906108c 30
5f8cefd7
PA
31if ![runto_main] then {
32 fail "Can't run to main"
33 return 0
c906108c
SS
34}
35
5f8cefd7
PA
36# Once while the program is running and stopped.
37gdb_test "info terminal" \
38 "Inferior's terminal status .currently saved by GDB.:.*" \
39 "info terminal at breakpoint"
c906108c 40
5f8cefd7
PA
41gdb_continue_to_end
42
43# One last time after the program having exited.
44gdb_test "info terminal" \
45 "No saved terminal information.*" \
46 "test info terminal #2"
This page took 1.202618 seconds and 4 git commands to generate.