summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-03-24 20:56:29 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-24 20:56:29 +0100
commit9bc4352089163b011f72b09cbedcd2a2c0963f02 (patch)
tree869a8af3ddd9ea17ce1fa114c054ca9838c9e307 /tests/unit
parent907643bc9c4ef139bb010c84f32c765cfb386400 (diff)
downloadweechat-9bc4352089163b011f72b09cbedcd2a2c0963f02.zip
core: fix tests on function strftimeval on Alpine
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/core/test-core-util.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/core/test-core-util.cpp b/tests/unit/core/test-core-util.cpp
index 4f7730a94..3303f751c 100644
--- a/tests/unit/core/test-core-util.cpp
+++ b/tests/unit/core/test-core-util.cpp
@@ -229,13 +229,13 @@ TEST(CoreUtil, Strftimeval)
/* invalid microseconds digits (must be 1-6) */
strcpy (str_time, "test");
- LONGS_EQUAL(23, util_strftimeval (str_time, sizeof (str_time),
+ LONGS_EQUAL(20, util_strftimeval (str_time, sizeof (str_time),
"%Y-%m-%d %H:%M:%S.%.0", &tv));
- STRCMP_EQUAL("2023-12-25 10:29:09.%.0", str_time);
+ STRCMP_EQUAL("2023-12-25 10:29:09.", str_time);
strcpy (str_time, "test");
- LONGS_EQUAL(23, util_strftimeval (str_time, sizeof (str_time),
+ LONGS_EQUAL(20, util_strftimeval (str_time, sizeof (str_time),
"%Y-%m-%d %H:%M:%S.%.7", &tv));
- STRCMP_EQUAL("2023-12-25 10:29:09.%.7", str_time);
+ STRCMP_EQUAL("2023-12-25 10:29:09.", str_time);
/* timestamp */
strcpy (str_time, "test");