summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "bionic/test: migrate sysconf tests from system/extras to bionic/tests"Dmitriy Ivanov2014-11-171-4/+135
|\
| * bionic/test: migrate sysconf tests from system/extras to bionic/testsDerek Xue2014-11-151-4/+135
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge "Add getaddrinfo(3) tests for NULL arguments."Elliott Hughes2014-11-171-0/+17
|\ \
| * | Add getaddrinfo(3) tests for NULL arguments.Elliott Hughes2014-11-161-0/+17
| | | | | | | | | | | | | | | | | | | | | According to https://github.com/ukanth/afwall/pull/213 some OEMs have shipped a getaddrinfo(3) that crashes given NULL hostnames. Change-Id: I9cea5fdd68546b7c64cf47e10e2b2b4d672b69d0
* | | Merge "Allow asan for glibc tests."Dan Albert2014-11-152-0/+5
|\ \ \ | |_|/ |/| |
| * | Allow asan for glibc tests.Dan Albert2014-11-142-0/+5
| | | | | | | | | | | | | | | | | | SANITIZE_HOST will break if we don't allow ASAN. Change-Id: I0beed82b058db391f633e0ea1098f140497c65d4
* | | Add functions in sysinfo.h.Yabin Cui2014-11-142-0/+34
| | | | | | | | | | | | | | | | | | Bug: 17703902 Change-Id: I699d12d76a8fc483c919be730c2ac63641b71a1d
* | | Merge "Increase support of pathconf options."Yabin Cui2014-11-141-0/+21
|\ \ \ | |/ / |/| |
| * | Increase support of pathconf options.Yabin Cui2014-11-141-0/+21
| | | | | | | | | | | | Bug: 18206366 Change-Id: Ie770e49f5af3631eb9fbd2cd5174edf004c81e00
* | | Fix host build for arm/arm64Dmitriy Ivanov2014-11-141-2/+7
| | | | | | | | | | | | Change-Id: Id92543e4080aede205b3e63099fa2baa36ba21f0
* | | Add test for --hash-style=sysvDmitriy Ivanov2014-11-143-4/+35
| | | | | | | | | | | | | | | | | | | | | With build system switched to gnu-hash we need a test for sysv-hashed library. Change-Id: I34adc216fa79199aa46066cf13fcc1c1f2581f0e
* | | Merge "Add missing function prototypes wcpcpy/wcpncpy."Christopher Ferris2014-11-141-5/+75
|\ \ \
| * | | Add missing function prototypes wcpcpy/wcpncpy.Christopher Ferris2014-11-131-5/+75
| | |/ | |/| | | | | | | | | | | | | Also add smoke tests for a few of the wchar functions. Change-Id: Id1be522f55a6708564d444941f42097548f16497
* | | Fix our <mntent.h> implementation.Elliott Hughes2014-11-131-8/+14
|/ / | | | | | | | | | | Used by toybox. Change-Id: I36a5053423e5cc54ae02a68f4fe110d75134accd
* | Assume glibc >= 2.15.Elliott Hughes2014-11-122-57/+1
| | | | | | | | | | | | | | This catches one trivial difference between us and glibc --- the error returned by pthread_setname_np for an invalid pthread_t. Change-Id: If4c21e22107c6488333d11184f8005f8669096c2
* | Merge "Fix glibc 2.15 build."Elliott Hughes2014-11-133-23/+16
|\ \
| * | Fix glibc 2.15 build.Elliott Hughes2014-11-123-23/+16
| |/ | | | | | | | | | | | | | | 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
* | Add support for hash-style=gnuDmitriy Ivanov2014-11-122-12/+25
|/ | | | Change-Id: I171434a587420895feac8a9b1ad2342087197568
* Merge "implement missing seekdir and telldir"Yabin Cui2014-11-122-1/+48
|\
| * implement missing seekdir and telldirYabin Cui2014-11-072-1/+48
| | | | | | | | | | Bug: 18266863 Change-Id: I189ee949d4f7ccee099f3341e349cd969d25480f
* | Merge "gethostname.c: change to report ENAMETOOLONG error when buflen is less"Elliott Hughes2014-11-121-6/+8
|\ \
| * | gethostname.c: change to report ENAMETOOLONG error when buflen is lessYongqin Liu2014-11-121-6/+8
| | | | | | | | | | | | | | | | | | | | | change to behaviour the same as glibc for the check about buflen Change-Id: I98265a8fe441df6fed2527686f89b087364ca53d Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
* | | Merge "bionic tests: migrate gethostname test to unistd_test.cpp from ↵Elliott Hughes2014-11-121-0/+22
|\ \ \ | |/ / | | | | | | system/extras"
| * | bionic tests: migrate gethostname test to unistd_test.cpp from system/extrasDerek Xue2014-11-121-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Add align/overread tests for strlcpy/strlcat.Christopher Ferris2014-11-101-9/+93
|/ / | | | | | | Change-Id: I2801c7ee1847cd68ec95eba5bdffde5e52edf1e5
* | Add sethostname(2).Elliott Hughes2014-11-071-0/+8
| | | | | | | | | | | | Not very useful, but helps building stuff like toybox out of the box. Change-Id: I110e39030452bd093a84278e019c5752d293718d
* | Implement all the POSIX _l functions.Elliott Hughes2014-11-061-0/+31
| | | | | | | | | | | | | | | | 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
* | Add POSIX lcong48.Elliott Hughes2014-11-061-0/+66
| | | | | | | | Change-Id: I821046816661d77275cb02c8c99d526bb41afb9c
* | Merge "Fix our <complex.h> support."Elliott Hughes2014-11-062-0/+261
|\ \ | |/ |/|
| * Fix our <complex.h> support.Elliott Hughes2014-11-062-0/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | make all bionic death tests not dumpableYabin Cui2014-11-067-96/+80
|/ | | | | | Bug: 18067305 Change-Id: Ia1ecacf47eddecc9bc58aaac779e0c218f463179
* Merge "check invalid file offset when loading library"Yabin Cui2014-11-051-3/+17
|\
| * check invalid file offset when loading libraryYabin Cui2014-11-041-3/+17
| | | | | | | | | | | | | | Bug: 18178121 Bug: 18078224 Change-Id: I5254433d54645db68e9b83d5095dc2bf9d8531bc
* | Merge "Fix newlocale with a NULL locale name."Elliott Hughes2014-11-051-4/+14
|\ \
| * | Fix newlocale with a NULL locale name.Elliott Hughes2014-11-041-4/+14
| |/ | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=78567 Change-Id: I272dabc12ab186b44a525c7e8ac1846e62334e85
* | Improve math tests to allow a specific ulp bound.Elliott Hughes2014-11-0417-406/+254
|/ | | | | | | | | | | 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
* Merge "Make host tests depend on /system/etc/hosts."Dan Albert2014-11-031-1/+1
|\
| * Make host tests depend on /system/etc/hosts.Dan Albert2014-11-031-1/+1
| | | | | | | | Change-Id: I3e5ab1325d5e250a1d14b53f3a5a465d9f5de30c
* | Ensure we initialize stdin/stdout/stderr's recursive mutexes.Elliott Hughes2014-11-031-0/+17
|/ | | | | Bug: 18208568 Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
* Fix arm64 and arm builds.Dmitriy Ivanov2014-10-313-7/+13
| | | | Change-Id: I2c8c41626768e792f27a2616f2cd5ae66606319d
* Fix symbol lookup order during relocationDmitriy Ivanov2014-10-318-2/+257
| | | | | | | | | | | 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
* Extra strtod/strtof tests.Elliott Hughes2014-10-281-0/+17
| | | | | | | | Check that libc doesn't suffer from a couple of bugs that affected Java in the past. Bug: 2206701 Change-Id: I9eb64d7ff2fa0b79e93079b897a5fb78bef866be
* [x86,x86_64] Fix libgcc unwinding through signalPavel Chupin2014-10-274-75/+14
| | | | | | | | | | | | | | | | | | | | 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>
* pthread_setname_np appears in glibc 2.12.Elliott Hughes2014-10-271-26/+23
| | | | | | And our emulator kernels are now new enough to not require a workaround. Change-Id: Id56c983dbfd8abc69f72a78411a5502391941dfc
* Fix *tests-run-on-host targetDmitriy Ivanov2014-10-251-15/+8
| | | | Change-Id: Id0e5060977a2df91c47b5a916989eb7e2e3f8153
* bionic tests: migrate test for mutex type from system/extrasDerek Xue2014-10-241-4/+76
| | | | | | | | | | | 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>
* Merge "Disable clang compilation due to lack of ifunc."Chih-Hung Hsieh2014-10-241-0/+1
|\
| * Disable clang compilation due to lack of ifunc.Chih-Hung Hsieh2014-10-241-0/+1
| | | | | | | | | | BUG: 18055309 Change-Id: I0f36011cf7872a20ddd36a6c3c607eb96f0a8ec2
* | Make the netdb unit tests work on the host.Elliott Hughes2014-10-241-0/+4
|/ | | | | Bug: 18111005 Change-Id: I79c6929c3827716e19b44d7469db69740f4b449c
* Merge "Add mkfifoat(3)."Elliott Hughes2014-10-241-0/+13
|\