testsuite/gdb.base: Make skip test use defined behaviour.
authorWill Newton <willnewton@sourceware.org>
Tue, 18 Jun 2013 18:16:16 +0000 (18:16 +0000)
committerWill Newton <willnewton@sourceware.org>
Tue, 18 Jun 2013 18:16:16 +0000 (18:16 +0000)
commit6de7c271e1b4daf1e2cb9ed807cf953fb2e15d0d
tree1af387aef72b9722447e3ec302600c2e0cb3911b
parent5bd1ef568c63cbcf6ed99a083eeb18cf940871dd
testsuite/gdb.base: Make skip test use defined behaviour.

The skip test currently relies on the order of evaluation of
arguments which is not defined. Use the comma operator where
order is defined instead.

gdb/testsuite/ChangeLog:

2013-06-18  Will Newton  <will.newton@linaro.org>

* gdb.base/skip.c: Use comma to evaluate results of foo()
and bar() before passing to baz().
* gdb.base/skip.c: baz() now takes one argument instead of
two.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/skip.c
gdb/testsuite/gdb.base/skip1.c