mirror of https://github.com/ARMmbed/mbed-os.git
18 lines
434 B
C++
18 lines
434 B
C++
#include "mbed.h"
|
|
#include "greentea-client/test_env.h"
|
|
#include "unity.h"
|
|
#include "utest.h"
|
|
#include "wifi_tests.h"
|
|
|
|
using namespace utest::v1;
|
|
|
|
void wifi_connect_secure_fail(void)
|
|
{
|
|
WiFiInterface *wifi = get_interface();
|
|
|
|
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(MBED_CONF_APP_WIFI_SECURE_SSID, "aaaaaaaa", NSAPI_SECURITY_WPA2));
|
|
|
|
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_AUTH_FAILURE, wifi->connect());
|
|
}
|
|
|