[Coverity 1050275] Unchecked return value Tizen5.5-M1-RC1 accepted/tizen/unified/20190405.015717 submit/tizen/20190404.070309
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 4 Apr 2019 01:33:21 +0000 (10:33 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 4 Apr 2019 05:42:02 +0000 (14:42 +0900)
commitfb4747c008bf896f64661bb93a9a2b863e12bfe0
tree66ffd183e09e1a0259aba82baa967b047031833d
parent69b45938a2a330d8e5638e5a12665b6add4f1255
[Coverity 1050275] Unchecked return value

This solves the unchecked return value issue in destory_dev_dir():
Value returned from a library is not checked for error before being used.

remove/rmdir will return with failure if the file/dir does not exist.
added safe_remove/rmdir to delete a file without checking for validity.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
tests/nnstreamer_source/unittest_src_iio.cpp