From 7c4ddaeedeb96793d4b3a8d0d0749f89e1aee7c7 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 9 Nov 2021 01:54:04 +0800 Subject: [PATCH] testing/fstest: Don't reuse the deleted name to simplify the root cause analysis Signed-off-by: Xiang Xiao --- testing/fstest/fstest_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/fstest/fstest_main.c b/testing/fstest/fstest_main.c index c8d7cc6ab..94ad7db75 100644 --- a/testing/fstest/fstest_main.c +++ b/testing/fstest/fstest_main.c @@ -200,7 +200,7 @@ static bool fstest_checkexist(FAR struct fstest_filedesc_s *file) for (i = 0; i < CONFIG_TESTING_FSTEST_MAXOPEN; i++) { - if (!g_files[i].deleted && &g_files[i] != file && + if (&g_files[i] != file && g_files[i].name && strcmp(g_files[i].name, file->name) == 0) { ret = true;