Replace readdir() with readdir_r() and add cv::exception handling 69/148669/2 accepted/tizen/unified/20170912.191641 submit/tizen/20170911.064449
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 8 Sep 2017 08:54:57 +0000 (17:54 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 8 Sep 2017 09:11:25 +0000 (18:11 +0900)
commit68ea52fcc93936cb059d57240a92102ec65919cc
treecb62ca256392e0e507453eeb0f855ad57e1c8d3b
parent27e57e1845545278d32f98c3a44ef20d2177d216
Replace readdir() with readdir_r() and add cv::exception handling

1. Replace readdir() with readdir_r() because of unguaranteed thread safety of readdir()
2. Add try-catch when cvtcolor is called. If exception might be thrown, *_INVALID_OPERATION
   would be returned. Then, testsuite can handle the error case.

Change-Id: Id6ef3455ff5e5e37be8e91cf1c7af817093e7d48
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/capi-media-vision.spec
test/testsuites/common/image_helper/src/ImageHelper.cpp
test/testsuites/face/face_test_suite.c
test/testsuites/image/image_test_suite.c