test: add platone test case test_003DeleteWallet_0003DeleteWalletSucessExistingFile
fix the issue aitos-io#1176
teambition task id:
@@ -923,6 +923,13 @@ START_TEST(test_003DeleteWallet_0002DeleteWalletFailureNoExistingFile)
}
END_TEST
+START_TEST(test_003DeleteWallet_0003DeleteWalletSucessExistingFile)
+{
+ BoatWalletDelete("platone");
+ ck_assert_int_eq(access("platone", F_OK), -1);
+}
+END_TEST
+
Suite *make_wallet_suite(void)
{
/* Create Suite */
@@ -972,6 +979,7 @@ Suite *make_wallet_suite(void)
tcase_add_test(tc_wallet_api, test_003DeleteWallet_0001DeleteWalletFailureNullFleName);
tcase_add_test(tc_wallet_api, test_003DeleteWallet_0002DeleteWalletFailureNoExistingFile);
+ tcase_add_test(tc_wallet_api, test_003DeleteWallet_0003DeleteWalletSucessExistingFile);
return s_wallet;
}
