Skip two more attach tests when testing against stub-like targets
authorDon Breazeal <donb@codesourcery.com>
Thu, 15 Jan 2015 18:47:31 +0000 (10:47 -0800)
committerDon Breazeal <donb@codesourcery.com>
Thu, 15 Jan 2015 18:59:57 +0000 (10:59 -0800)
commitd221e7efd61fc80f6fbf862b7e32927835575329
tree525812dabb6b89b31d5d31e1986c34d9080d236b
parentcd21f5daad4335b50366b838664ade64bec29957
Skip two more attach tests when testing against stub-like targets

This patch updates two attach tests to use utility procs for checking if
the attach test should run and for launching the program to be attached, as
follows:

1) Use can_spawn_for_attach instead of is_remote target
2) Use spawn_wait_for_attach instead of exec/sleep

Tested (1) with i686-mingw32 host and i686-pc-linux-gnu build/target and
both with x86_64 Ubuntu.

gdb/testsuite/ChangeLog:

* gdb.base/attach-pie-noexec.exp: Use can_spawn_for_attach
instead of checking whether the target board is remote and
use spawn_wait_for_attach instead of exec/sleep.
* gdb.base/attach-twice.exp: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/attach-pie-noexec.exp
gdb/testsuite/gdb.base/attach-twice.exp
This page took 0.046519 seconds and 4 git commands to generate.