From efe8e90e9c4b550596c0b30cfb3c1bd371135100 Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Sat, 8 Apr 2023 16:20:48 +0800 Subject: [PATCH] examples/sotest: fix issue about running multiple times Signed-off-by: dongjiuzhu1 --- examples/sotest/sotest_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/sotest/sotest_main.c b/examples/sotest/sotest_main.c index b068479d4c6..5c1568e5934 100644 --- a/examples/sotest/sotest_main.c +++ b/examples/sotest/sotest_main.c @@ -36,6 +36,7 @@ #include #include #include +#include #include @@ -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;