This is an automated email from the ASF dual-hosted git repository.
archer 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 f228ee1e4 Fix Error: usrsocktest_basic_connect.c:112:7: error:
variable 'ret' set but not used
f228ee1e4 is described below
commit f228ee1e4f7ab9861b1e6357f39395b4f2afc801
Author: Xiang Xiao <[email protected]>
AuthorDate: Wed May 22 09:40:40 2024 +0800
Fix Error: usrsocktest_basic_connect.c:112:7: error: variable 'ret' set but
not used
Signed-off-by: Xiang Xiao <[email protected]>
---
examples/usrsocktest/usrsocktest_basic_connect.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/usrsocktest/usrsocktest_basic_connect.c
b/examples/usrsocktest/usrsocktest_basic_connect.c
index 215cdeef7..0f639856a 100644
--- a/examples/usrsocktest/usrsocktest_basic_connect.c
+++ b/examples/usrsocktest/usrsocktest_basic_connect.c
@@ -114,13 +114,13 @@ static void teardown(void)
if (sd >= 0)
{
ret = close(sd);
- assert(ret >= 0);
+ TEST_ASSERT_TRUE(ret >= 0);
}
if (started)
{
ret = usrsocktest_daemon_stop();
- assert(ret == OK);
+ TEST_ASSERT_EQUAL(OK, ret);
}
}