Skip to content

Commit bb39e23

Browse files
committed
system/uorb:unit_test bug fix
Fixed the error message caused by inconsistent definitions of pthread_t on different platforms. Signed-off-by: likun17 <[email protected]>
1 parent 0295e58 commit bb39e23

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

system/uorb/test/unit_test.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,6 @@ static int latency_test(bool print)
235235
usleep(1000); /* simulate >800 Hz system operation */
236236
}
237237

238-
if (pubsub_task < 0)
239-
{
240-
test_fail("failed launching task");
241-
goto out;
242-
}
243-
244238
ret = OK;
245239

246240
out:

system/uorb/uORB/uORB.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* Name: orb_advsub_open
4444
*
4545
* Description:
46-
* Open device node as advertiser / subscriber, regist node and save meta
46+
* Open device node as advertiser / subscriber, register node and save meta
4747
* in driver for first user, set buffer number for advertisers.
4848
*
4949
* Input Parameters:
@@ -68,7 +68,7 @@ static int orb_advsub_open(FAR const struct orb_metadata *meta, int flags,
6868
snprintf(path, ORB_PATH_MAX, ORB_SENSOR_PATH"%s%d", meta->o_name,
6969
instance);
7070

71-
/* Check existance before open */
71+
/* Check existence before open */
7272

7373
flags |= O_CLOEXEC;
7474
fd = open(path, flags);

system/uorb/uORB/uORB.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ struct orb_handle_s
108108
int events; /* Events of interest. */
109109
int fd; /* Topic fd. */
110110
FAR void *arg; /* Callback parameter. */
111-
orb_datain_cb_t datain_cb; /* User EPOLLIN callback funtion. */
112-
orb_dataout_cb_t dataout_cb; /* User EPOLLOUT callback funtion. */
113-
orb_eventpri_cb_t eventpri_cb; /* User EPOLLPRI callback funtion. */
114-
orb_eventerr_cb_t eventerr_cb; /* User EPOLLERR callback funtion. */
111+
orb_datain_cb_t datain_cb; /* User EPOLLIN callback function. */
112+
orb_dataout_cb_t dataout_cb; /* User EPOLLOUT callback function. */
113+
orb_eventpri_cb_t eventpri_cb; /* User EPOLLPRI callback function. */
114+
orb_eventerr_cb_t eventerr_cb; /* User EPOLLERR callback function. */
115115
};
116116

117117
struct orb_loop_ops_s;
@@ -806,7 +806,7 @@ orb_abstime orb_absolute_time(void);
806806
* then Past system time.
807807
*
808808
* Returned Value:
809-
* Bewteen time.
809+
* Between time.
810810
****************************************************************************/
811811

812812
static inline orb_abstime orb_elapsed_time(FAR const orb_abstime *then)

0 commit comments

Comments
 (0)