From: Paweł Szewczyk
Date: Mon, 1 Oct 2018 10:51:55 +0000 (+0200)
Subject: [UTC][usb-host][Non-ACR][Fix endpoints used in transfer tests]
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23ec98946e5e6b53e78d23b260ebf15dd857a81a;p=test%2Ftct%2Fnative%2Fapi.git
[UTC][usb-host][Non-ACR][Fix endpoints used in transfer tests]
Wrong endpoints were used in interrupt transfer and bulk transfer tests.
The ep1 and ep2 are bulk endpoints, ep3 and ep4 are interrupt endpoints.
Change-Id: Ia6126c96dbb01882ea32da2d92b0e8341f5235c9
Signed-off-by: Paweł Szewczyk
---
diff --git a/src/utc/usb-host/utc-usb-host.c b/src/utc/usb-host/utc-usb-host.c
index 63e399a11..1f2398dc9 100755
--- a/src/utc/usb-host/utc-usb-host.c
+++ b/src/utc/usb-host/utc-usb-host.c
@@ -57,10 +57,10 @@ static usb_host_context_h ctx = NULL;
static usb_host_device_h dev = NULL;
static usb_host_config_h cfg = NULL;
static usb_host_interface_h iface = NULL;
-static usb_host_endpoint_h ep1 = NULL;
-static usb_host_endpoint_h ep2 = NULL;
-static usb_host_endpoint_h ep3 = NULL;
-static usb_host_endpoint_h ep4 = NULL;
+static usb_host_endpoint_h ep1 = NULL; /**< Bulk in */
+static usb_host_endpoint_h ep2 = NULL; /**< Bulk out */
+static usb_host_endpoint_h ep3 = NULL; /**< Interrupt in */
+static usb_host_endpoint_h ep4 = NULL; /**< Interrupt out */
static usb_host_transfer_h transfer1 = NULL;
static usb_host_transfer_h transfer_control = NULL;
static unsigned char transfer_buffer[sizeof(TEST_DATA)];
@@ -2130,7 +2130,7 @@ static int test_loopback_transfer(usb_host_endpoint_h in, usb_host_endpoint_h ou
*/
int utc_usb_host_interrupt_transfer_p(void)
{
- return test_loopback_transfer(ep1, ep2);
+ return test_loopback_transfer(ep3, ep4);
}
/**
@@ -2142,7 +2142,7 @@ int utc_usb_host_interrupt_transfer_p(void)
*/
int utc_usb_host_transfer_p(void)
{
- return test_loopback_transfer(ep3, ep4);
+ return test_loopback_transfer(ep1, ep2);
}
/**