You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2021/06/14 22:00:36 UTC
[incubator-nuttx-apps] branch master updated (4808fb4 -> a7b7c90)
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git.
from 4808fb4 apps warning: add ether_h because Wimplicit-function-declaration
new 26277cc testing: Exit with non zero value in the failure path
new a7b7c90 Fix nxstyle warning
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
testing/fatutf8/fatutf8_main.c | 5 +++++
testing/fstest/fstest_main.c | 4 ++++
testing/nxffs/nxffs_main.c | 5 ++++-
3 files changed, 13 insertions(+), 1 deletion(-)
[incubator-nuttx-apps] 02/02: Fix nxstyle warning
Posted by ag...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit a7b7c90f6ae4269350c9b36b85d96ce943d194f2
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Jun 14 23:14:44 2021 +0800
Fix nxstyle warning
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
testing/nxffs/nxffs_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing/nxffs/nxffs_main.c b/testing/nxffs/nxffs_main.c
index 9b92c1c..43c8771 100644
--- a/testing/nxffs/nxffs_main.c
+++ b/testing/nxffs/nxffs_main.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * testing/nxffs/nxffs_main.c
+ * apps/testing/nxffs/nxffs_main.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
[incubator-nuttx-apps] 01/02: testing: Exit with non zero value in
the failure path
Posted by ag...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 26277cc94635a86b75cf4c31d56f07c114b58809
Author: paopao <v-...@xiaomi.com>
AuthorDate: Tue Feb 9 02:20:56 2021 -0500
testing: Exit with non zero value in the failure path
Change-Id: I90115ab51bcd937b8443a6aab2fabb6cd559aa85
Signed-off-by: paopao <v-...@xiaomi.com>
---
testing/fatutf8/fatutf8_main.c | 5 +++++
testing/fstest/fstest_main.c | 4 ++++
testing/nxffs/nxffs_main.c | 3 +++
3 files changed, 12 insertions(+)
diff --git a/testing/fatutf8/fatutf8_main.c b/testing/fatutf8/fatutf8_main.c
index 9fbde7e..8e11517 100644
--- a/testing/fatutf8/fatutf8_main.c
+++ b/testing/fatutf8/fatutf8_main.c
@@ -99,6 +99,7 @@ int main(int argc, FAR char *argv[])
if (ret != 0)
{
printf("mkdir failed: %d\n", errno);
+ exit(ret);
}
else
{
@@ -124,6 +125,7 @@ int main(int argc, FAR char *argv[])
else
{
printf("write failed: %d\n", errno);
+ exit(len);
}
fsync(fd);
@@ -132,6 +134,7 @@ int main(int argc, FAR char *argv[])
else
{
printf("open failed: %d\n", errno);
+ exit(fd);
}
printf("\n");
@@ -152,6 +155,7 @@ int main(int argc, FAR char *argv[])
else
{
printf("read failed: %d\n", errno);
+ exit(len);
}
close(fd);
@@ -159,6 +163,7 @@ int main(int argc, FAR char *argv[])
else
{
printf("open failed: %d\n", errno);
+ exit(fd);
}
return EXIT_SUCCESS;
diff --git a/testing/fstest/fstest_main.c b/testing/fstest/fstest_main.c
index 750412d..d3a1e83 100644
--- a/testing/fstest/fstest_main.c
+++ b/testing/fstest/fstest_main.c
@@ -1021,6 +1021,7 @@ int main(int argc, FAR char *argv[])
printf("ERROR: Failed to verify files\n");
printf(" Number of files: %d\n", g_nfiles);
printf(" Number deleted: %d\n", g_ndeleted);
+ exit(ret);
}
else
{
@@ -1040,6 +1041,7 @@ int main(int argc, FAR char *argv[])
printf("ERROR: Failed to delete files\n");
printf(" Number of files: %d\n", g_nfiles);
printf(" Number deleted: %d\n", g_ndeleted);
+ exit(ret);
}
else
{
@@ -1065,6 +1067,7 @@ int main(int argc, FAR char *argv[])
printf("ERROR: Failed to verify files\n");
printf(" Number of files: %d\n", g_nfiles);
printf(" Number deleted: %d\n", g_ndeleted);
+ exit(ret);
}
else
{
@@ -1081,6 +1084,7 @@ int main(int argc, FAR char *argv[])
if (ret < 0)
{
printf("ERROR: statfs failed: %d\n", errno);
+ exit(ret);
}
else
{
diff --git a/testing/nxffs/nxffs_main.c b/testing/nxffs/nxffs_main.c
index 4ab7edb..9b92c1c 100644
--- a/testing/nxffs/nxffs_main.c
+++ b/testing/nxffs/nxffs_main.c
@@ -854,6 +854,7 @@ int main(int argc, FAR char *argv[])
printf("ERROR: Failed to verify files\n");
printf(" Number of files: %d\n", g_nfiles);
printf(" Number deleted: %d\n", g_ndeleted);
+ exit(ret);
}
else
{
@@ -873,6 +874,7 @@ int main(int argc, FAR char *argv[])
printf("ERROR: Failed to delete files\n");
printf(" Number of files: %d\n", g_nfiles);
printf(" Number deleted: %d\n", g_ndeleted);
+ exit(ret);
}
else
{
@@ -895,6 +897,7 @@ int main(int argc, FAR char *argv[])
printf("ERROR: Failed to verify files\n");
printf(" Number of files: %d\n", g_nfiles);
printf(" Number deleted: %d\n", g_ndeleted);
+ exit(ret);
}
else
{