diff options
author | Will Newton <willnewton@sourceware.org> | 2013-06-18 18:16:16 +0000 |
---|---|---|
committer | Will Newton <willnewton@sourceware.org> | 2013-06-18 18:16:16 +0000 |
commit | 6de7c271e1b4daf1e2cb9ed807cf953fb2e15d0d (patch) | |
tree | 1af387aef72b9722447e3ec302600c2e0cb3911b /gdb/testsuite/gdb.base/skip1.c | |
parent | 5bd1ef568c63cbcf6ed99a083eeb18cf940871dd (diff) | |
download | gdb-6de7c271e1b4daf1e2cb9ed807cf953fb2e15d0d.zip gdb-6de7c271e1b4daf1e2cb9ed807cf953fb2e15d0d.tar.gz gdb-6de7c271e1b4daf1e2cb9ed807cf953fb2e15d0d.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/skip1.c')
-rw-r--r-- | gdb/testsuite/gdb.base/skip1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/skip1.c b/gdb/testsuite/gdb.base/skip1.c index 2dab5c3..fe63cd6 100644 --- a/gdb/testsuite/gdb.base/skip1.c +++ b/gdb/testsuite/gdb.base/skip1.c @@ -3,7 +3,7 @@ int bar() return 1; } -int baz(int a, int b) +int baz(int a) { - return a + b; + return a + 1; } |