mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-23 18:09:52 +08:00
examples/sotest: fix issue about running multiple times
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <nuttx/symtab.h>
|
#include <nuttx/symtab.h>
|
||||||
|
|
||||||
@@ -282,6 +283,8 @@ int main(int argc, FAR char *argv[])
|
|||||||
BINDIR, errno);
|
BINDIR, errno);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unlink(devname);
|
||||||
#endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */
|
#endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user