From: Bartlomiej Kunikowski Date: Thu, 12 Jan 2017 15:10:38 +0000 (+0100) Subject: Fix for smoke tests X-Git-Tag: accepted/tizen/common/20170125.113216~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F110465%2F1;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Fix for smoke tests - SmokeTest.InstallExternalMode - SmokeTest.MigrateLegacyExternalImageMode Above test throws an exception when in device there is no SD Card. This patch repairs it. Change-Id: Id7e9e6da3b79193005818b5c84c20bc5f886bc8f --- diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index bbcc1ec..66ca801 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -430,7 +430,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; }