From: Bartlomiej Kunikowski Date: Mon, 23 Jan 2017 08:21:18 +0000 (+0100) Subject: Fix for smoke tests X-Git-Tag: submit/tizen/20170209.083108~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a818e18366bf6f4b08400d63f45c22168192a1e;p=platform%2Fcore%2Fappfw%2Ftpk-backend.git Fix for smoke tests - SmokeTest.InstallExternal_Tpk - SmokeTest.MigrateLegacyExternalImage_Tpk Above test throws an exception when in device there is no SD Card. This patch repairs it. Change-Id: Ia535ac072231e69bf131c76e12dde28cc988e6f8 --- diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index d7fc48f..f2b006e 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -346,7 +346,7 @@ ci::AppInstaller::Result Install(const bf::path& path, bool CheckAvailableExternalPath() { bf::path ext_mount_path = ci::GetExternalCardPath(); LOG(DEBUG) << "ext_mount_path :" << ext_mount_path; - if (bf::is_empty(ext_mount_path)) { + if (ext_mount_path.empty()) { LOG(ERROR) << "Sdcard not exists!"; return false; }