From 73e865b695595ab6c77d226d42f7bef8cd5f3fa9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 16 Apr 2023 09:11:49 +0200 Subject: [PATCH] tests: add sysinfo to show sizeof(time_t) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- tests/helpers/test_sysinfo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index 692a846017..c36aca2b5c 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -125,6 +126,12 @@ static int hlp_fsopen_ok(void) return 0; } +static int hlp_sz_time(void) +{ + printf("%zu\n", sizeof(time_t)); + return 0; +} + static const mntHlpfnc hlps[] = { { "WORDSIZE", hlp_wordsize }, @@ -139,6 +146,7 @@ static const mntHlpfnc hlps[] = { "wcsspn-ok", hlp_wcsspn_ok }, { "enotty-ok", hlp_enotty_ok }, { "fsopen-ok", hlp_fsopen_ok }, + { "sz(time_t)", hlp_sz_time }, { NULL, NULL } }; -- 2.47.3