[Coverity] Resolved TOCTOU issuse from coverity
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 18 Apr 2019 06:30:16 +0000 (15:30 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 18 Apr 2019 09:38:54 +0000 (18:38 +0900)
commit3e405094fbd602316b6c782e9c383336b95df7cf
tree22dc0e6f68a07de44066e14358cf88bcff6ab2be
parentaf05bf3266c32ee0c1f4cdb4a0cce384fd8b58a4
[Coverity] Resolved TOCTOU issuse from coverity

TOCTOU issue : A check occurs on a file's attributes before the file
is used in a priveleged operation, but things may have changed.

Removed file test operation and using stat as a single check operation
as well as file size reading operation.

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