Zhangjin Wu 957bfa31f1 selftests/nolibc: add new gettimeofday test cases
These 2 test cases are added to cover the normal using scenes of
gettimeofday().

They have been used to trigger and fix up such issue with nolibc:

    nolibc-test.c:(.text.gettimeofday+0x54): undefined reference to `__aeabi_ldivmod'

This issue happens while there is no "unsigned int" conversion in the
coming new clock_gettime / clock_gettime64 syscall path of
gettimeofday():

    tv->tv_usec = ts.tv_nsec / 1000;

Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/linux-riscv/280867a8-7601-4a96-9b85-87668e1f1282@t-8ch.de/
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2023-06-09 11:46:10 -07:00
..
2023-04-24 12:28:34 -07:00
2023-04-29 10:05:22 -07:00
2023-02-23 09:37:29 -08:00
2023-03-01 09:27:00 -08:00
2023-02-23 09:37:29 -08:00
2023-04-18 16:53:52 -07:00
2023-05-04 13:09:43 -07:00
2023-04-25 11:05:04 -07:00
2023-04-24 12:16:14 -07:00
2023-02-23 09:37:29 -08:00
2023-03-01 09:27:00 -08:00
2023-04-11 14:10:47 -06:00