binutils-gdb/gdb/testsuite/gdb.server
Pedro Alves a4674e4efc Fix sequential gdb test runs
Sequential test runs are stopping prematurely like this:

 $ make check RUNTESTFLAGS="non-existing-program.exp server-exec-info.exp"

 Running /home/pedro/gdb/mygit/src/gdb/testsuite/gdb.server/non-existing-program.exp ...
 Running /home/pedro/gdb/mygit/src/gdb/testsuite/gdb.server/server-exec-info.exp ...
 can not find channel named "exp6"
     while executing
 "match_max [match_max -d]"
     (procedure "default_gdb_init" line 26)
     invoked from within
 "default_gdb_init $test_file_name"
     (procedure "gdb_init" line 83)
     invoked from within
 "${tool}_init $test_file_name"
     (procedure "runtest" line 18)
     invoked from within
 "runtest $test_name"
     ("foreach" body line 42)
     invoked from within
 ...
 make[2]: *** [check-single] Error 1
 make[2]: Leaving directory `/home/pedro/gdb/mygit/build/gdb/testsuite'
 make[1]: *** [check] Error 2
 make[1]: Leaving directory `/home/pedro/gdb/mygit/build/gdb/testsuite'
 make: *** [check] Error 2

default_gdb_init has this:

    # Unlike most tests, we have a small number of tests that generate
    # a very large amount of output.  We therefore increase the expect
    # buffer size to be able to contain the entire test output.  This
    # is especially needed by gdb.base/info-macros.exp.
    match_max -d 65536
    # Also set this value for the currently running GDB.
    match_max [match_max -d]

It's the second match_max that is erroring.  As that call does not
specify an explicit channel name with -i, expect defaults to
$spawn_id, which is pointing at a channel that is already gone.  (If
the spawn_id variable is not set, match_max defaults to
$user_spawn_id / stdin/out).

gdb/testsuite/ChangeLog:
2015-05-08  Pedro Alves  <palves@redhat.com>

	* gdb.server/non-existing-program.exp: Unset spawn_id.
2015-05-08 18:06:46 +01:00
..
Makefile.in From: Sanimir Agovic <sanimir.agovic@intel.com> 2013-02-12 15:03:12 +00:00
ext-attach.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ext-attach.exp skip "attach" tests when testing against stub-like targets 2015-01-09 11:04:19 +00:00
ext-run.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
file-transfer.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
no-thread-db.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
no-thread-db.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
non-existing-program.exp Fix sequential gdb test runs 2015-05-08 18:06:46 +01:00
server-exec-info.exp Access executable from remote system when first inferior appears 2015-04-17 09:47:30 +01:00
server-kill.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
server-kill.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
server-mon.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
server-run.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
server.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
solib-list-lib.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
solib-list-main.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
solib-list.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
transfer.txt
wrapper.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
wrapper.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00