From f633d11b6322db53ff171383b6252d11838482a3 Mon Sep 17 00:00:00 2001 From: GC2020 Date: Mon, 8 Apr 2024 19:40:13 +0800 Subject: [PATCH] examples/pipe:removes useless data from test cases --- examples/pipe/pipe_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/pipe/pipe_main.c b/examples/pipe/pipe_main.c index 25ca6c5f2..697afe5f9 100644 --- a/examples/pipe/pipe_main.c +++ b/examples/pipe/pipe_main.c @@ -157,6 +157,12 @@ int main(int argc, FAR char *argv[]) return 6; } + ret = remove(FIFO_PATH1); + if (ret != 0) + { + fprintf(stderr, "pipe_main: remove failed with errno=%d\n", errno); + } + /* Perform the FIFO interlock test */ fprintf(stderr, "\npipe_main: Performing pipe interlock test\n");