executed.
If we call set_active very quickly, there is a phenomenon that the deinit
thread in the NFC pluin is stopped at pthread_join().
To overcome this, we added sleep(1) before calling set_active(false);
Change-Id: Iafbcbdf6742f8dbfbfef1d4be31cd40a67462e7f
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
error_e error = ERROR_NONE;
int result = 0;
- message = InvokeMethod(NFC_MGR_SERVICE".Manager",
+ message = InvokeMethod(NFC_MGR_SERVICE,
NFC_MGR_PATH,
NFC_MANAGER_INTERFACE,
NFC_MANAGER_SET_ACTIVE,
Manager mgr;
if (ERROR_NONE == CheckFeature()) {
+ sleep(1);
ret = mgr.SetActivation(false);
}
EXPECT_EQ(ERROR_NONE, ret);