selftests/timers: Add missing error code assignment before test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 9 Aug 2016 10:11:26 +0000 (12:11 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 20 Sep 2016 15:00:28 +0000 (09:00 -0600)
commitc3cb83560daae4c619d1034eb98c1a40ee896387
tree8f8d89603ffbd343793fc52a21af889c43541a68
parent0ad46becb5c03e7d2464f00b2a1cd460a9c2b3c0
selftests/timers: Add missing error code assignment before test

In order to work, the 'err' return value has to be updated otherwise the
test can never be true.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/timers/posix_timers.c