ubiformat: Fix wrong error tests
Several tests in ubiformat test for a positive error code where a
negative error code is returned from the called functions. This
is because the original code used tested against errno which is a
positive value.
One place still tests against errno, but the test should be against
the return value from the last function call. Fix that aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 84a0ecc commit 41f5f8bb6ff00a6197d7a1f1a671c20895c22ac6
@Sascha Hauer Sascha Hauer authored on 15 Jul 2019
Showing 1 changed file
View
common/ubiformat.c