android_bionic/tests
Colin Cross 26532523c6 Cast sysinfo.uptime for musl
Upstream musl libc defines sysinfo.uptime as unsigned long, while the
kernel and glibc define it as long.  Cast it to long for the
comparision.

Bug: 190084016
Test: bionic-unit-tests-glibc
Change-Id: Ib322472d512a9a7474a936e33f35523e1dc995d9
2022-09-29 11:15:06 -07:00
..
headers C11 removed gets(). 2022-03-30 17:25:10 -07:00
libs Add android_mallopt to query MTE stack state 2022-09-07 23:38:42 +00:00
math_data
prebuilt-elf-files Always process TLS relocs using general code path 2022-03-25 15:51:11 -07:00
Android.bp Revert^2 "memtag_stack tests." 2022-08-31 20:57:03 +00:00
Android.mk Move prebuilt library dependencies of bionic-unit-tests to Blueprint 2020-07-28 19:01:00 -07:00
NOTICE Fix tests/NOTICE file. 2022-09-08 21:54:29 +00:00
SignalUtils.h Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
_FILE_OFFSET_BITS_test.cpp _FILE_OFFSET_BITS=64 support for fcntl. 2020-01-29 19:36:14 -08:00
__aeabi_read_tp_test.cpp Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
__cxa_atexit_test.cpp Rewrite __cxa_atexit / __cxa_finalize 2020-03-06 21:04:32 -08:00
__cxa_demangle_test.cpp Disable failing test __cxa_demangle#cxa_demangle_fuzz_167977068. 2020-11-10 11:31:51 -08:00
__cxa_thread_atexit_test.cpp
alloca_test.cpp
android_get_device_api_level.cpp Fix argument order in api level test 2020-05-03 20:10:51 -07:00
android_set_abort_message_test.cpp In android_set_abort_message, check for nullptr. 2022-04-12 13:46:48 -07:00
android_unsafe_frame_pointer_chase_test.cpp Handle the alternate signal stack correctly in android_unsafe_frame_pointer_chase. 2020-02-27 10:44:15 -08:00
arpa_inet_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
assert_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
async_safe_test.cpp Add %m and %#x support for async_safe logging 2022-02-17 07:23:58 +00:00
atexit_test.cpp
bionic_allocator_test.cpp Changes for #inclusivefixit. 2020-07-21 16:34:58 -07:00
buffer_tests.cpp
buffer_tests.h
bug_26110743_test.cpp
byteswap_test.cpp
cfi_test.cpp CFI uses SIGTRAP on arm/arm64. 2022-02-15 14:04:44 -08:00
clang_fortify_asan.cpp fortify: allow diagnostics without run-time checks (attempt #2) 2019-11-19 14:20:26 -08:00
clang_fortify_tests.cpp Add/allow clang-14 warnings. 2021-10-11 12:37:56 -07:00
complex_force_long_double_test.cpp
complex_test.cpp
core_shared_libs.h Ignore symbols of imported libs' dependencies 2020-02-03 14:20:40 -08:00
ctype_test.cpp Reimplement the <ctype.h> is* functions. 2019-10-08 12:04:09 -07:00
dirent_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
dl_test.cpp Use SKIP_WITH_HWASAN macro from libbase. 2022-04-15 16:14:56 -07:00
dlext_private.h Rename linker greylist to exempt-list 2020-08-03 16:17:00 -07:00
dlext_test.cpp Merge "Convert bionic dlext test zips to Android.bp" 2021-10-01 16:27:54 +00:00
dlfcn_symlink_support.cpp
dlfcn_symlink_support.h
dlfcn_test.cpp Always process TLS relocs using general code path 2022-03-25 15:51:11 -07:00
elf_test.cpp
elftls_dl_test.cpp Convert bionic dlext test zips to Android.bp 2021-09-30 14:04:27 -07:00
elftls_test.cpp
endian_test.cpp
errno_test.cpp
error_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
eventfd_test.cpp Fix freopen() where the path is null. 2021-02-04 17:01:55 -08:00
execinfo_test.cpp Add execinfo functionality. 2021-10-20 21:53:07 +00:00
fcntl_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
fdsan_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
fdtrack_test.cpp Disable fdtrack post-fork. 2021-04-07 19:00:45 -07:00
fenv_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
float_test.cpp
fnmatch_test.cpp Add tests for FNM_LEADING_DIR 2020-12-10 08:07:28 -08:00
fortify_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
fortify_test_main.cpp
ftw_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
getauxval_test.cpp
getcwd_test.cpp Use SKIP_WITH_HWASAN macro from libbase. 2022-04-15 16:14:56 -07:00
glob_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
grp_pwd_file_test.cpp
grp_pwd_test.cpp Various coverage improvements. 2020-08-12 15:52:14 -07:00
gtest_globals.cpp Convert bionic dlext test zips to Android.bp 2021-09-30 14:04:27 -07:00
gtest_globals.h Move prebuilt library dependencies of bionic-unit-tests to Blueprint 2020-07-28 19:01:00 -07:00
gtest_main.cpp
gtest_preinit_debuggerd.cpp
gtest_utils.h
gwp_asan_test.cpp Extend bionic-unit-tests timeout. 2022-07-11 09:35:12 -07:00
heap_tagging_level_test.cpp Use SKIP_WITH_HWASAN macro from libbase. 2022-04-15 16:14:56 -07:00
iconv_test.cpp iconv(3): ignore src_bytes_left if src_bytes is null. 2021-02-18 10:37:22 -08:00
ifaddrs_test.cpp
ifunc_test.cpp Fix ifunc_test for hwasan builds. 2020-04-13 14:16:17 -07:00
inttypes_test.cpp
iso646_test.c
langinfo_test.cpp
leak_test.cpp Random HWASan cleanups. 2021-09-24 11:21:38 -07:00
libdl_test.cpp
libgen_basename_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
libgen_test.cpp
limits_test.cpp
link_test.cpp Changes for #inclusivefixit. 2020-07-21 16:34:58 -07:00
linux_swab_test.cpp
locale_test.cpp
make_fortify_compile_test.mk Add LOCAL_LICENSE_KINDS to bionic 2021-02-19 23:38:28 +00:00
malloc_iterate_test.cpp Use SKIP_WITH_HWASAN macro from libbase. 2022-04-15 16:14:56 -07:00
malloc_stress_test.cpp [GWP-ASan] [malloc-tests] Scan GWP-ASan regions in maps. 2020-02-11 16:08:17 -08:00
malloc_test.cpp Add android_mallopt to query MTE stack state 2022-09-07 23:38:42 +00:00
math_data_test.h
math_force_long_double_test.cpp
math_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
membarrier_test.cpp
memtag_stack_test.cpp Add android_mallopt to query MTE stack state 2022-09-07 23:38:42 +00:00
mntent_test.cpp mntent_test: don't assume /proc isn't the first mount. 2022-05-13 16:06:54 -07:00
mte_test.cpp [MTE] Add comment about nested ScopedDisableMTE in test. 2022-08-02 23:52:43 +00:00
net_if_test.cpp
netdb_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
netinet_ether_test.cpp Various coverage improvements. 2020-08-12 15:52:14 -07:00
netinet_in_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
netinet_ip_icmp_test.cpp
netinet_udp_test.cpp
nl_types_test.cpp
pidfd_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
poll_test.cpp
prio_ctor_test.cpp Put __*_ARRAY__ symbols before prioritized init/fini funcs 2020-11-02 17:28:41 -08:00
pthread_dlfcn_test.cpp
pthread_test.cpp Fix a race condition in the bionic pthread tests. 2021-12-02 12:45:54 -08:00
pty_test.cpp Cleanup for #inclusivefixit. 2020-07-28 12:12:20 -07:00
regex_test.cpp
resolv_test.cpp Export bionic's resolv base64 functions to musl 2022-02-03 16:25:26 -08:00
run-on-host.sh Fix running tests/benchmarks on the host. 2019-04-26 17:45:17 -07:00
sched_test.cpp Various coverage improvements. 2020-08-12 15:52:14 -07:00
scs_test.cpp
scsi_sg_test.cpp
search_test.cpp Various coverage improvements. 2020-08-12 15:52:14 -07:00
semaphore_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
setjmp_test.cpp Skip setjmp.bug_152210274 on HWASan. 2022-04-15 23:15:26 +00:00
signal_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
spawn_test.cpp posix_spawn: always clear O_CLOEXEC for dup'ed fds. 2022-02-16 14:39:07 -08:00
sstream_test.cpp
stack_protector_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
stack_protector_test_helper.cpp stack_protector_DeathTest#modify_stack_protector: avoid flake. 2022-09-27 22:37:03 +00:00
stack_unwinding_test.cpp Disable return PAC in __pthread_start. 2021-06-08 16:03:41 -07:00
stdalign_test.cpp
stdarg_test.cpp
stdatomic_test.cpp Changes for #inclusivefixit. 2020-07-21 16:34:58 -07:00
stdbool_test.c
stdint_test.cpp
stdio_ext_test.cpp Add __freadahead. 2022-09-22 23:47:42 +00:00
stdio_nofortify_test.cpp
stdio_test.cpp Merge "Add %b and %B support to the scanf/wscanf and strto*/wcsto* families." 2022-08-11 21:22:23 +00:00
stdlib_test.cpp Add %b and %B support to the scanf/wscanf and strto*/wcsto* families. 2022-08-11 00:25:08 +00:00
stdnoreturn_test.cpp
string_nofortify_test.cpp
string_posix_strerror_r_test.cpp Replace local MUSL define with global ANDROID_HOST_MUSL 2021-08-16 16:44:24 -07:00
string_posix_strerror_r_wrapper.cpp Enable posix strerror_r test in glibc 2021-07-30 09:39:58 -07:00
string_test.cpp Add C23's memset_explicit(). 2022-08-10 23:36:16 +00:00
strings_nofortify_test.cpp
strings_test.cpp Add ffsl(3), ffsll(3). 2020-03-26 11:43:05 -07:00
struct_layout_test.cpp memtag_stack: vfork and longjmp support. 2022-05-27 13:19:34 -07:00
sys_auxv_test.cpp Make the HWCAP/HWCAP2 constants available from <sys/auxv.h>. 2020-02-24 09:52:14 -08:00
sys_epoll_test.cpp Fix freopen() where the path is null. 2021-02-04 17:01:55 -08:00
sys_ioctl_diag_test.cpp
sys_mman_test.cpp Add memfd_create(2) and mlock2(2). 2019-08-05 16:31:08 -07:00
sys_msg_test.cpp
sys_param_test.cpp Make powerof2 macro ubsan safe 2019-03-25 13:51:33 -07:00
sys_personality_test.cpp Remove mips test workarounds. 2020-02-13 09:48:14 -08:00
sys_prctl_test.cpp
sys_procfs_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
sys_ptrace_test.cpp Remove mips test workarounds. 2020-02-13 09:48:14 -08:00
sys_quota_test.cpp
sys_random_test.cpp
sys_resource_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
sys_select_test.cpp
sys_sem_test.cpp
sys_sendfile_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
sys_shm_test.cpp
sys_signalfd_test.cpp
sys_socket_test.cpp Fix freopen() where the path is null. 2021-02-04 17:01:55 -08:00
sys_stat_test.cpp Improve fchmod() coverage. 2021-03-08 14:10:46 -08:00
sys_statvfs_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
sys_syscall_test.cpp
sys_sysinfo_test.cpp Cast sysinfo.uptime for musl 2022-09-29 11:15:06 -07:00
sys_sysmacros_test.cpp
sys_thread_properties_test.cpp Add a thread-properties API 2020-08-11 16:51:43 +00:00
sys_time_test.cpp Fix bionic-unit-tests-glibc for 32-bit musl 2021-08-16 16:32:53 -07:00
sys_timex_test.cpp
sys_ttydefaults_test.cpp Mark variables as unused. 2021-12-14 23:02:53 +00:00
sys_types_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
sys_uio_test.cpp Add preadv2/pwritev2 wrappers. 2021-10-18 12:58:47 -07:00
sys_un_test.cpp
sys_vfs_test.cpp Build bionic unit tests for musl 2021-08-12 11:13:11 -07:00
sys_wait_test.cpp Various coverage improvements. 2020-08-12 15:52:14 -07:00
sys_xattr_test.cpp Improve <sys/xattr.h> coverage. 2021-03-08 14:09:43 -08:00
system_properties_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
system_properties_test2.cpp Check that __system_property_set() doesn't leak FDs 2019-11-05 12:33:33 -08:00
termios_test.cpp
tgmath_test.c
thread_local_test.cpp
threads_test.cpp Switch to libbase SilentDeathTest. 2021-04-12 10:01:20 -07:00
time_test.cpp Handle null TM_ZONE in z case in strftime. 2022-07-25 16:39:12 +01:00
touch-obj-on-success Stop using grep -P. 2019-07-08 15:03:19 -07:00
uchar_test.cpp uchar.h tests: small improvements. 2021-11-05 17:49:36 -07:00
unistd_nofortify_test.cpp
unistd_test.cpp Simplify the implementation of get_nproc(). 2022-07-28 17:52:46 +00:00
utils.cpp Add persistent GWP-ASan sysprops. 2022-06-29 09:25:13 -07:00
utils.h Add persistent GWP-ASan sysprops. 2022-06-29 09:25:13 -07:00
utmp_test.cpp Reimplement our no-op utmp.h functions more simply. 2020-08-07 17:07:31 -07:00
wchar_test.cpp Add %b and %B support to the scanf/wscanf and strto*/wcsto* families. 2022-08-11 00:25:08 +00:00
wctype_test.cpp