mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/sotest: fix issue about running multiple times
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
f890a0b1cb
commit
100db2a678
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#include <dlfcn.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <nuttx/symtab.h>
|
||||
|
||||
|
|
@ -282,6 +283,8 @@ int main(int argc, FAR char *argv[])
|
|||
BINDIR, errno);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
unlink(devname);
|
||||
#endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue