Skip to content

Commit

Permalink
examples/sotest: fix issue about running multiple times
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiuzhu1 <[email protected]>
  • Loading branch information
Donny9 committed Jul 29, 2023
1 parent 9b96e86 commit efe8e90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/sotest/sotest_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <dlfcn.h>
#include <errno.h>
#include <debug.h>
#include <unistd.h>

#include <nuttx/symtab.h>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit efe8e90

Please sign in to comment.