mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Get TEST_LIBC_CALLS passing on AARCH64
This commit is contained in:
parent
802e7eb4ef
commit
ba49e86e20
22 changed files with 65 additions and 7 deletions
|
@ -42,11 +42,14 @@ TEST(clock_gettime, test) {
|
|||
ASSERT_EQ(0, clock_gettime(0, &ts));
|
||||
ASSERT_NE(0, ts.tv_sec);
|
||||
ASSERT_NE(0, ts.tv_nsec);
|
||||
#ifndef __aarch64__
|
||||
// we support vdso on aarch64 but qemu-aarch64 won't let us test it
|
||||
if (__is_linux_2_6_23()) {
|
||||
ASSERT_GT((intptr_t)__clock_gettime_get(&isfast),
|
||||
getauxval(AT_SYSINFO_EHDR));
|
||||
ASSERT_TRUE(isfast);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
BENCH(clock_gettime, bench) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue