Fix up return codes for tests in tst-ftell-active-handler
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 10 Mar 2014 10:50:01 +0000 (16:20 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 17 Mar 2014 14:14:51 +0000 (19:44 +0530)
commitb1dbb426e164ad1236c2c76268e03fec5c7a7bbe
tree9e3a263e48066fd376234a4e03cebc542eb6b36a
parentfcd89ebe4f5ea948ff4c796771b918cde8960721
Fix up return codes for tests in tst-ftell-active-handler

The test functions used a variable ret to store failure codes for
individual tests, but the variable was incorrectly used to record
other failure codes too, resulting in overwriting of the tests status.
This is now fixed by making sure that the ret variable is used only
for recording test failures.

* libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
up test status with function return status.
(do_write_test): Likewise.
(do_append_test): Likewise.
ChangeLog
libio/tst-ftell-active-handler.c