| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The old test are implemented in file:
system/extras/tests/bionic/libc/other/test_sysconf.c
This change is to migrate them to bionic/tests with the gtest format.
and since the sysconf is defined in unistd.h, will put the test under
bionic/tests/unistd_test.cpp file as unistd.syscon test
Change-Id: Ie519147c1c86a6c4cefa8c88b18bf58bdfbffbdb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
According to https://github.com/ukanth/afwall/pull/213 some OEMs have
shipped a getaddrinfo(3) that crashes given NULL hostnames.
Change-Id: I9cea5fdd68546b7c64cf47e10e2b2b4d672b69d0
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
SANITIZE_HOST will break if we don't allow ASAN.
Change-Id: I0beed82b058db391f633e0ea1098f140497c65d4
|
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 17703902
Change-Id: I699d12d76a8fc483c919be730c2ac63641b71a1d
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Bug: 18206366
Change-Id: Ie770e49f5af3631eb9fbd2cd5174edf004c81e00
|
| | |
| | |
| | |
| | | |
Change-Id: Id92543e4080aede205b3e63099fa2baa36ba21f0
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With build system switched to gnu-hash we need
a test for sysv-hashed library.
Change-Id: I34adc216fa79199aa46066cf13fcc1c1f2581f0e
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
Also add smoke tests for a few of the wchar functions.
Change-Id: Id1be522f55a6708564d444941f42097548f16497
|
|/ /
| |
| |
| |
| |
| | |
Used by toybox.
Change-Id: I36a5053423e5cc54ae02a68f4fe110d75134accd
|
| |
| |
| |
| |
| |
| |
| | |
This catches one trivial difference between us and glibc --- the error
returned by pthread_setname_np for an invalid pthread_t.
Change-Id: If4c21e22107c6488333d11184f8005f8669096c2
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
glibc 2.15 has prlimit64, has an unsetenv that's declared nonnull,
and hasn't fixed the problems we were having trying to use the
POSIX strerror_r in C++ code.
Change-Id: I834356a385e5ae55500bd86781691b6c1c9c8300
|
|/
|
|
| |
Change-Id: I171434a587420895feac8a9b1ad2342087197568
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: 18266863
Change-Id: I189ee949d4f7ccee099f3341e349cd969d25480f
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
change to behaviour the same as glibc for the check about buflen
Change-Id: I98265a8fe441df6fed2527686f89b087364ca53d
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
|
|\ \ \
| |/ /
| | |
| | | |
system/extras"
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The old tests are implemented in file
system/extras/tests/bionic/libc/common/test_gethostname.c
Here migrate the test to the tests/unistd_test.cpp file and
add some more checks
Change-Id: Iab1e3da873bb333d1ddefc03108d536933792db2
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
|
|/ /
| |
| |
| | |
Change-Id: I2801c7ee1847cd68ec95eba5bdffde5e52edf1e5
|
| |
| |
| |
| |
| |
| | |
Not very useful, but helps building stuff like toybox out of the box.
Change-Id: I110e39030452bd093a84278e019c5752d293718d
|
| |
| |
| |
| |
| |
| |
| |
| | |
Strictly speaking, this only implements the _l variants of the functions
we actually have. We're still missing nl_langinfo_l, for example, but we
don't have nl_langinfo either.
Change-Id: Ie711c7b04e7b9100932a13f5a5d5b28847eb4c12
|
| |
| |
| |
| | |
Change-Id: I821046816661d77275cb02c8c99d526bb41afb9c
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We build libm with -fvisibility=hidden, so we weren't exporting any
of the <complex.h> functions.
We also weren't building many of the functions anyway.
We were also missing the complex inverse trigonometric functions.
And because we didn't even have perfunctory "call each function once"
tests, we didn't notice that we weren't exporting any symbols, so this
patch adds at least that level of testing.
Change-Id: Ibcf2843f507126c51d134cc5fc8d67747e033a0d
|
|/
|
|
|
|
| |
Bug: 18067305
Change-Id: Ia1ecacf47eddecc9bc58aaac779e0c218f463179
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Bug: 18178121
Bug: 18078224
Change-Id: I5254433d54645db68e9b83d5095dc2bf9d8531bc
|
|\ \ |
|
| |/
| |
| |
| |
| | |
Bug: https://code.google.com/p/android/issues/detail?id=78567
Change-Id: I272dabc12ab186b44a525c7e8ac1846e62334e85
|
|/
|
|
|
|
|
|
|
|
|
| |
At the moment our libm is only good enough for a 1 ulp bound on these tests,
but that's better than the 4 ulp bound you get from gtest by default.
I'm not really happy with the multiple structures and corresponding functions,
but at least they mean there's no duplication in the tests themselves, and it
should be easy enough for us to make further improvements in future.
Change-Id: I004e12970332e1d9531721361d6c34f908cfcecc
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I3e5ab1325d5e250a1d14b53f3a5a465d9f5de30c
|
|/
|
|
|
| |
Bug: 18208568
Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
|
|
|
|
| |
Change-Id: I2c8c41626768e792f27a2616f2cd5ae66606319d
|
|
|
|
|
|
|
|
|
|
|
| |
Relocate symbol against DF_1_GLOBAL shared libraries
loaded before this shared library. This includes
main executable, ld_preloads and other libraries
that have DF_1_GLOBAL flag set.
Bug: 2643900
Bug: 15432753
Change-Id: Ia788748be59b739d1c7e62b978e7e255f9e65c7b
|
|
|
|
|
|
|
|
| |
Check that libc doesn't suffer from a couple of bugs that affected
Java in the past.
Bug: 2206701
Change-Id: I9eb64d7ff2fa0b79e93079b897a5fb78bef866be
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change provides __restore/__restore_rt on x86 and __restore_rt on
x86_64 with unwinding information to be able to unwind through signal
frame via libgcc provided unwinding interface. See comments inlined for
more details.
Also remove the test that had a dependency on
__attribute__((cleanup(foo_cleanup))). It doesn't provide us with any
better test coverage than we have from the newer tests, and it doesn't
work well across a variety architectures (presumably because no one uses
this attribute in the real world).
Tested this on host via bionic-unit-tests-run-on-host on both x86 and
x86-64.
Bug: 17436734
Change-Id: I2f06814e82c8faa732cb4f5648868dc0fd2e5fe4
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
|
|
|
|
|
| |
And our emulator kernels are now new enough to not require a workaround.
Change-Id: Id56c983dbfd8abc69f72a78411a5502391941dfc
|
|
|
|
| |
Change-Id: Id0e5060977a2df91c47b5a916989eb7e2e3f8153
|
|
|
|
|
|
|
|
|
|
|
| |
Migrate the test about pthread mutex type in file
system/extras/tests/bionic/libc/bionic/test_mutex.c
to the new place
bionic/tests/pthread_test.cpp
in the gtest format.
Change-Id: I6aab10170ccad5b9a4892d52dba2403876c86659
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
|
|\ |
|
| |
| |
| |
| |
| | |
BUG: 18055309
Change-Id: I0f36011cf7872a20ddd36a6c3c607eb96f0a8ec2
|
|/
|
|
|
| |
Bug: 18111005
Change-Id: I79c6929c3827716e19b44d7469db69740f4b449c
|
|\ |
|