From 474b516a5c8cdda971567e5f523007cf5630f52c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 25 Oct 2025 19:38:14 +0300 Subject: [PATCH] lib-http, lib-smtp: test-*-payload - Skip files created by make check These may change during "make check", breaking the test. --- src/lib-http/test-http-payload.c | 5 +++++ src/lib-smtp/test-smtp-payload.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 07afb5b21a..2759ceabc0 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -125,6 +125,11 @@ static void test_files_read_dir(const char *path) dp->d_name[strcspn(dp->d_name, unsafe_characters)] != '\0') continue; + if (str_ends_with(dp->d_name, ".tmp") || + str_ends_with(dp->d_name, ".log") || + str_ends_with(dp->d_name, ".trs")) + continue; + file = t_abspath_to(dp->d_name, path); if (stat(file, &st) == 0) { if (S_ISREG(st.st_mode)) { diff --git a/src/lib-smtp/test-smtp-payload.c b/src/lib-smtp/test-smtp-payload.c index b4a6263e59..5329331e59 100644 --- a/src/lib-smtp/test-smtp-payload.c +++ b/src/lib-smtp/test-smtp-payload.c @@ -103,6 +103,11 @@ static void test_files_read_dir(const char *path) if (*dp->d_name == '.') continue; + if (str_ends_with(dp->d_name, ".tmp") || + str_ends_with(dp->d_name, ".log") || + str_ends_with(dp->d_name, ".trs")) + continue; + file = t_abspath_to(dp->d_name, path); if (stat(file, &st) == 0) { if (S_ISREG(st.st_mode)) { -- 2.47.3