aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/branch-to-self.exp
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-04-27 16:11:53 +0100
committerYao Qi <yao.qi@linaro.org>2016-04-27 16:13:52 +0100
commit11cf4ffb5e256d268a8f4cea0fc88a0a46bf824c (patch)
treebc316647dd6b84b68893956fefde4f3c230bebb0 /gdb/testsuite/gdb.base/branch-to-self.exp
parent476350ba4800f1144b125f6511a5e25b223cc90b (diff)
downloadgdb-11cf4ffb5e256d268a8f4cea0fc88a0a46bf824c.zip
gdb-11cf4ffb5e256d268a8f4cea0fc88a0a46bf824c.tar.gz
gdb-11cf4ffb5e256d268a8f4cea0fc88a0a46bf824c.tar.bz2
Skip gdb.base/branch-to-self.exp if gdb,nosignals exists
I get a timeout fail in branch-to-self.exp when it is compiled by a bare-mental target running qemu, which doesn't have signal. The test should be skipped if gdb,nosignals exists, and that is what this patch does. gdb/testsuite: 2016-04-27 Yao Qi <yao.qi@linaro.org> * gdb.base/branch-to-self.exp: Skip it if gdb,nosignals exists.
Diffstat (limited to 'gdb/testsuite/gdb.base/branch-to-self.exp')
-rw-r--r--gdb/testsuite/gdb.base/branch-to-self.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/branch-to-self.exp b/gdb/testsuite/gdb.base/branch-to-self.exp
index 2fd3b38..4db502c 100644
--- a/gdb/testsuite/gdb.base/branch-to-self.exp
+++ b/gdb/testsuite/gdb.base/branch-to-self.exp
@@ -15,6 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+if [target_info exists gdb,nosignals] {
+ verbose "Skipping branch-to-self.exp because of nosignals."
+ continue
+}
+
standard_testfile
if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] == -1 } {