From c8cb029de9fd9e03f81f83286d0f0afa25c9b7ec Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 8 Oct 2025 14:12:55 +0200 Subject: [PATCH] unittests: disable LogCustomFormatTest01 for MinGW Test was previously not run so it was missed that it fails. --- src/log-cf-common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/log-cf-common.c b/src/log-cf-common.c index b36bea6a80..f57c90b63a 100644 --- a/src/log-cf-common.c +++ b/src/log-cf-common.c @@ -233,6 +233,9 @@ void LogCustomFormatWriteTimestamp(MemBuffer *buffer, const char *fmt, const SCT */ static int LogCustomFormatTest01(void) { + // strftime which underpins LogCustomFormatWriteTimestamp doesn't + // seem to function properly on MinGW +#ifndef __MINGW32__ struct tm tm; tm.tm_sec = 0; tm.tm_min = 30; @@ -257,6 +260,7 @@ static int LogCustomFormatTest01(void) FAIL_IF(strcmp((char *)buffer->buffer, "01/13/14-04:30:00") != 0); MemBufferFree(buffer); +#endif PASS; }