- Regard TC as succeess even if USB media is not connected when MTP_init
- In case, when MTP feature is disabled, we ignore MTP_Init_p TC.
Change-Id: Ib1242e79f72ee2149c6e44814aa33f42d2d4ceff
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
if (ERROR_NONE == CheckFeature()) {
LIBMTP_Init();
rv = LIBMTP_Detect_Raw_Devices(&rawdevices, &numrawdevices);
+
+ /* We regard No USB media as success case */
+ if (LIBMTP_ERROR_NO_DEVICE_ATTACHED == rv ||
+ LIBMTP_ERROR_CONNECTING == rv)
+ rv = LIBMTP_ERROR_NONE;
}
- EXPECT_NE(LIBMTP_ERROR_NONE, rv) << "Initialization and Detected"
+ EXPECT_EQ(LIBMTP_ERROR_NONE, rv) << "Initialization and Detected"
" devices successfully";
+
if (rawdevices) {
free(rawdevices);
rawdevices = NULL;
#ifdef USE_DLOG
#include <dlog.h>
#undef LOG_TAG
-#define LOG_TAG "WIFI_MESH_GTEST"
+#define LOG_TAG "MTP_INITIATOR_HALTEST"
#define GLOGD(format, args...) LOGD(format, ##args)
#else
#define GLOGD(format, args...)