diff --git a/tests/functional_tests/tests/test_atclient_monitor.c b/tests/functional_tests/tests/test_atclient_monitor.c index a5a282a2..85db065e 100644 --- a/tests/functional_tests/tests/test_atclient_monitor.c +++ b/tests/functional_tests/tests/test_atclient_monitor.c @@ -118,8 +118,7 @@ int main() { goto exit; exit: { - if ((ret = functional_tests_tear_down_sharedenckeys(&atclient1, ATKEY_SHAREDWITH)) != 0) { - ret = 1; + if ((functional_tests_tear_down_sharedenckeys(&atclient1, ATKEY_SHAREDWITH)) != 0) { atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "Failed to tear down sharedenckeys: %d\n", ret); } atclient_atkeys_free(&atkeys_sharedby); diff --git a/tests/functional_tests/tests/test_atclient_notify.c b/tests/functional_tests/tests/test_atclient_notify.c index 7c7b1c11..6b1a04cc 100644 --- a/tests/functional_tests/tests/test_atclient_notify.c +++ b/tests/functional_tests/tests/test_atclient_notify.c @@ -192,7 +192,7 @@ static int test_1_notify(atclient *atclient, char *notification_id) { goto exit; exit: { - if ((ret = functional_tests_tear_down_sharedenckeys(atclient, ATKEY_SHAREDWITH)) != 0) { + if (functional_tests_tear_down_sharedenckeys(atclient, ATKEY_SHAREDWITH) != 0) { atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "Failed to tear down sharedenckeys: %d\n", ret); } atclient_notify_params_free(¶ms); diff --git a/tests/functional_tests/tests/test_atclient_sharedkey.c b/tests/functional_tests/tests/test_atclient_sharedkey.c index 6c9f4448..e85968b5 100644 --- a/tests/functional_tests/tests/test_atclient_sharedkey.c +++ b/tests/functional_tests/tests/test_atclient_sharedkey.c @@ -90,11 +90,9 @@ int main(int argc, char *argv[]) { exit: { if (functional_tests_tear_down_sharedenckeys(&atclient1, SECOND_ATSIGN) != 0) { - ret = 1; atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "tear_down: %d\n", ret); } if (functional_tests_tear_down_sharedenckeys(&atclient2, FIRST_ATSIGN) != 0) { - ret = 1; atlogger_log(TAG, ATLOGGER_LOGGING_LEVEL_ERROR, "tear_down: %d\n", ret); } atclient_free(&atclient1);