binutils-gdb/gdb/testsuite/gdb.trace
Yao Qi 0d4d0e772a Skip tests on completion and readline when readline lib isn't used
The completion feature and other features on readline depend on the
readline library.  However, readline library is not always used, for
example, running testsuite like

  make check RUNTESTFLAGS="--host_board=local-remote-host"

the input stream is not a tty, and GDB doesn't use readline library
as a result.

This patch is to skip tests on completion and readline if
'show editing' is off, which means readline isn't used.  Note that
some tests in gdb.base/completion.exp test command complete, which
isn't related to readline, so these tests aren't affected by readline
library.  This patch also moves these tests up, run them
unconditionally, and run the rest if readline library is used.

gdb/testsuite:

2014-03-26  Yao Qi  <yao@codesourcery.com>

	* lib/gdb.exp (readline_is_used): New proc.
	* gdb.base/completion.exp: Move tests on command complete up.
	Skip the rest of tests if readline is not used.
	* gdb.ada/complete.exp: Skp the test if readline is not
	used.
	* gdb.base/filesym.exp: Likewise.
	* gdb.base/macscp.exp: Likewise.
	* gdb.base/readline-ask.exp: Likewise.
	* gdb.base/readline.exp: Likewise.
	* gdb.python/py-cmd.exp: Likewise.
	* gdb.trace/tfile.exp: Likewise.
2014-03-26 21:11:08 +08:00
..
Makefile.in tracepoint->step_count fixes 2013-04-04 19:22:38 +00:00
actions-changed.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
actions-changed.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
actions.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
actions.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ax.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
backtrace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
change-loc-1.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
change-loc-2.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
change-loc.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
change-loc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
change-loc.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
circ.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
circ.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
collection.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
collection.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
deltrace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
disconnected-tracing.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
disconnected-tracing.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
entry-values.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
entry-values.exp Fix regression on s390x with entry-values.exp. 2014-01-22 17:02:13 +01:00
ftrace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ftrace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
infotrace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-trace-frame-collected.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-trace-unavailable.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-traceframe-changed.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-tracepoint-changed.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-tsv-changed.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
packetlen.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
passc-dyn.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
passcount.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pending.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pending.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pendshr1.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pendshr2.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pr16508.exp Fix PR16508 2014-03-06 11:33:06 +08:00
qtro.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
qtro.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
range-stepping.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
range-stepping.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
read-memory.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
read-memory.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
report.exp Create inferior for ctf target. 2014-02-05 19:37:25 +08:00
save-trace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
stap-trace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
stap-trace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
status-stop.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
status-stop.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
strace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
strace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tfile.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tfile.exp Skip tests on completion and readline when readline lib isn't used 2014-03-26 21:11:08 +08:00
tfind.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-break.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-break.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-buffer-size.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-buffer-size.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-mt.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-mt.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-unavailable.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tracecmd.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tspeed.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tspeed.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tstatus.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tsv.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
unavailable-dwarf-piece.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
unavailable-dwarf-piece.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
unavailable.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
unavailable.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
while-dyn.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
while-stepping.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00