This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 009c9ad13 apps/system/uorb/test/unit_test.c: add orb_copy return
judgment.
009c9ad13 is described below
commit 009c9ad13fab1cc9501b82c78a26ad3cd8d39f31
Author: likun17 <[email protected]>
AuthorDate: Fri Sep 22 16:47:21 2023 +0800
apps/system/uorb/test/unit_test.c: add orb_copy return judgment.
Signed-off-by: likun17 <[email protected]>
---
system/uorb/test/unit_test.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/system/uorb/test/unit_test.c b/system/uorb/test/unit_test.c
index 471b471c3..81f2355a8 100644
--- a/system/uorb/test/unit_test.c
+++ b/system/uorb/test/unit_test.c
@@ -702,7 +702,12 @@ static int test_multi2(void)
0, 0
};
- orb_copy(ORB_ID(orb_test_medium_multi), orb_data_cur_fd, &msg);
+ if (OK != orb_copy(ORB_ID(orb_test_medium_multi),
+ orb_data_cur_fd, &msg))
+ {
+ return test_fail("copy failed: %d", errno);
+ }
+
if (last_time >= msg.timestamp && last_time != 0)
{
return test_fail("Timestamp not increasing! (%" PRIu64