]> www.infradead.org Git - mtd-utils.git/commit
ubi-tests: io_paral: Fix error handling of update_volume()
authorMartin Lund <malu@gomspace.com>
Wed, 5 Sep 2018 13:47:38 +0000 (15:47 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sat, 8 Sep 2018 16:48:46 +0000 (18:48 +0200)
commit04d76bcda9e1a948070927e6c5357d9760c32367
tree9bfb48394c83058225ac618b17101012298e515a
parent6922b87e1b5190fce4db6ecc5b416672a8a4d6ba
ubi-tests: io_paral: Fix error handling of update_volume()

The io_paral test returns success even in case it throws e.g. the
following error message:

[io_paral] update_volume():125: written and read data are different

This patch fixes so that the io_paral application returns a non-zero
error code when an error is detected.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/ubi-tests/io_paral.c