Home
last modified time | relevance | path

Searched refs:test_length (Results 1 – 3 of 3) sorted by relevance

/USBX-v6.2.1/test/regression/
Dusbx_standalone_cdc_acm_basic_test.c852 ULONG test_length; in test_cdc_acm_device_read_write_blocking() local
870 test_length = tests[test].len; in test_cdc_acm_device_read_write_blocking()
871 test_cdc_acm_device_read_length_set(test_length); in test_cdc_acm_device_read_write_blocking()
873 for (i = 0; i < test_length; i ++) in test_cdc_acm_device_read_write_blocking()
880 test_length, &actual_length); in test_cdc_acm_device_read_write_blocking()
881 UX_TEST_ASSERT_MESSAGE(status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_read_write_blocking()
882 if (((test_length & 63) == 0) && actual_length != device_read_length) in test_cdc_acm_device_read_write_blocking()
886 UX_TEST_ASSERT_MESSAGE(status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_read_write_blocking()
890 _ux_utility_memory_set(host_buffer, ~test_chr, test_length); in test_cdc_acm_device_read_write_blocking()
892 test_length, &actual_length); in test_cdc_acm_device_read_write_blocking()
[all …]
Dusbx_standalone_device_cdc_acm_transmission_test.c700 ULONG test_length; in test_cdc_acm_device_transmission() local
730 test_length = tests[test].len; in test_cdc_acm_device_transmission()
732 for (i = 0; i < test_length; i ++) in test_cdc_acm_device_transmission()
740 test_length, &actual_length); in test_cdc_acm_device_transmission()
741 UX_TEST_ASSERT_MESSAGE(status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_transmission()
742 if ((test_length & 63) == 0) in test_cdc_acm_device_transmission()
746 UX_TEST_ASSERT_MESSAGE(status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_transmission()
749 tx_thread_sleep(test_length/64 + 10); in test_cdc_acm_device_transmission()
751 …TEST_ASSERT_MESSAGE(cdc_acm_host_reception_status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_transmission()
752 if (cdc_acm_host_read_buffer_length != test_length) in test_cdc_acm_device_transmission()
[all …]
Dusbx_standalone_device_cdc_acm_basic_test.c787 ULONG test_length; in test_cdc_acm_device_read_write() local
817 test_length = tests[test].len; in test_cdc_acm_device_read_write()
819 for (i = 0; i < test_length; i ++) in test_cdc_acm_device_read_write()
827 test_length, &actual_length); in test_cdc_acm_device_read_write()
828 UX_TEST_ASSERT_MESSAGE(status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_read_write()
829 if ((test_length & 63) == 0) in test_cdc_acm_device_read_write()
833 UX_TEST_ASSERT_MESSAGE(status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_read_write()
836 tx_thread_sleep(test_length/64 + 1); in test_cdc_acm_device_read_write()
838 …TEST_ASSERT_MESSAGE(cdc_acm_host_reception_status == UX_SUCCESS, "test_length %ld\n", test_length); in test_cdc_acm_device_read_write()
839 if (cdc_acm_host_read_buffer_length != test_length) in test_cdc_acm_device_read_write()
[all …]