diff options
author | Zhangjin Wu <[email protected]> | 2023-06-03 16:16:07 +0800 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2023-06-09 11:46:10 -0700 |
commit | 957bfa31f1d93ba7ea9fda2a401b0f3c79129d5e (patch) | |
tree | 0799d496f493e5af565775c1cc60d9f4b58743b8 /lib/mpi/mpi-sub-ui.c | |
parent | 4cbab2eca009ca022ae17596b5f3d4024c52a65b (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/linux-riscv/[email protected]/
Signed-off-by: Zhangjin Wu <[email protected]>
Reviewed-by: Thomas Weißschuh <[email protected]>
Signed-off-by: Willy Tarreau <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions