3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

unit: Remove test case

This has been superceded by tests in unit/test-band.c
This commit is contained in:
Denis Kenzior 2021-06-03 22:14:55 -05:00
parent 43692cb377
commit 297cde85bc

View File

@ -692,22 +692,6 @@ static void ie_test_encapsulate_wsc(const void *data)
l_free(packed); l_free(packed);
} }
static void ie_test_supported_rates(const void *data)
{
const uint8_t zero_len_supp[] = { IE_TYPE_SUPPORTED_RATES, 0 };
const uint8_t zero_len_ext_supp[] = { IE_TYPE_EXTENDED_SUPPORTED_RATES,
0 };
int ret;
ret = ie_parse_data_rates(zero_len_supp, NULL, NULL, NULL,
-70, NULL);
assert(ret == -EINVAL);
ret = ie_parse_data_rates(NULL, zero_len_ext_supp, NULL, NULL,
-70, NULL);
assert(ret == -EINVAL);
}
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
l_test_init(&argc, &argv); l_test_init(&argc, &argv);
@ -768,8 +752,6 @@ int main(int argc, char *argv[])
l_test_add("/ie/Encapsulation/WSC/Test Case 1", l_test_add("/ie/Encapsulation/WSC/Test Case 1",
ie_test_encapsulate_wsc, ie_test_encapsulate_wsc,
&ie_tlv_concat_test_data_1); &ie_tlv_concat_test_data_1);
l_test_add("/ie/Supported rates/Test Case 1", ie_test_supported_rates,
NULL);
return l_test_run(); return l_test_run();
} }