summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix GNU/POSIX basename headers.Josh Gao2016-03-093-24/+90
| | | | | | | | | | Including glibc's <libgen.h> will result in the user getting the POSIX version of basename always, regardless of when it is included relative to <string.h>. Prior to this patch, our implementation would result in the one that's included first winning. Bug: http://b/25459151 Change-Id: Id4aaf1670dad317d6bbc05763a84ee87596e8e59
* Add prlimit to LP32.Elliott Hughes2016-03-091-7/+18
| | | | | Bug: http://b/24918750 Change-Id: I0151cd66ccf79a6169610de35bb9c288c0fa4917
* Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-071-0/+2
|\ | | | | | | | | | | https://android.googlesource.com/platform/bionic into cm-13.0 Android 6.0.1 release 3
| * linker: don't pass dlextinfo to dependent loads.Torne (Richard Coles)2015-10-081-0/+2
| | | | | | | | | | | | | | | | | | | | Don't pass the parent load's dlextinfo to dependent loads, since this causes the linker to try to load the dependencies using the same addresses/relro/fds/etc as the main library, which is never going to work. This was how it worked before ae69a95 which broke this. Bug: 23742664 Change-Id: I53d8cdf0982d8758e6d2ced4864c704cdf74118f
* | Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64.Elliott Hughes2015-11-071-0/+10
| | | | | | | | | | | | | | | | | | | | bionic is built without _FILE_OFFSET_BITS=64, so internally regoff_t was 32-bit on LP32, but code compiled with _FILE_OFFSET_BITS would expect rm_so and rm_eo in struct regmatch_t to be 64-bit, leading to confusion. Bug: http://b/23566443 Change-Id: Iae92fa545104068e4f64ce1977f5ec616859638c
* | Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-054-5/+38
|\ \ | |/ | | | | | | | | Android 6.0.0 release 26 Change-Id: Ic73500c2330af39a735307c153fbe3e71b7f2040
| * am 93a91f0c: Force cts to only run one test at a time.Christopher Ferris2015-09-292-4/+13
| |\ | | | | | | | | | | | | * commit '93a91f0cf4f015762ac1ed57395c4c0de8ba7db3': Force cts to only run one test at a time.
| | * Force cts to only run one test at a time.Christopher Ferris2015-09-252-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, slightly increase the timeout for each test run. Bug: 24198050 (cherry picked from commit daaaed18ce1d2f2da9d2240e974922299d937670) Change-Id: I29e169e962da803a89abf0a28e071abcafa315b7
| * | Increase alternative signal stack size on 64-bit devices.Yabin Cui2015-09-232-1/+25
| |/ | | | | | | | | | | Bug: 23041777 Bug: 24187462 Change-Id: I7d84c0cc775a74753a3e8e101169c0fb5dbf7437
* | Fix over read in strcpy/stpcpy/strcat.Christopher Ferris2015-10-292-9/+27
|/ | | | | | | | | | | | | | | | | | | | | | | This bug will happen when these circumstances are met: - Destination address & 0x7 == 1, strlen of src is 11, 12, 13. - Destination address & 0x7 == 2, strlen of src is 10, 11, 12. - Destination address & 0x7 == 3, strlen of src is 9, 10, 11. - Destination address & 0x7 == 4, strlen of src is 8, 9, 10. In these cases, the dest alignment code does a ldr which reads 4 bytes, and it will read past the end of the source. In most cases, this is probably benign, but if this crosses into a new page it could cause a crash. Fix the labels in the cortex-a9 strcat. Modify the overread test to vary the dst alignment to expost this bug. Also, shrink the strcat/strlcat overread cases since the dst alignment variation increases the runtime too much. Bug: 24345899 Change-Id: Ib34a559bfcebd89861985b29cae6c1e47b5b5855
* am a6a12a78: am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into ↵Yabin Cui2015-08-111-2/+2
|\ | | | | | | | | | | | | lollipop-mr1-cts-dev * commit 'a6a12a7804402273e193074a58162cc0b3890812': Fix flaky test time.timer_settime_0.
| * am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into ↵Yabin Cui2015-08-111-2/+2
| |\ | | | | | | | | | | | | | | | | | | lollipop-mr1-cts-dev * commit '0fdcdd0067af88e7deef73070d0861ceb9f53c37': Fix flaky test time.timer_settime_0.
| | * Fix flaky test time.timer_settime_0.Yabin Cui2015-08-111-2/+2
| | | | | | | | | | | | | | | | | | It fixes the problem reported in https://code.google.com/p/android/issues/detail?id=182395. Change-Id: Ie16aa04095dac08a62dd0d4c50e763b36526624c
* | | We don't have CXX_BARE any moreYing Wang2015-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Now we have split CXX_WRAPPER from TARGET_CXX and CXX_BARE isn't needed any more. Bug: 22612634 Change-Id: I52c78b0d1b325910e875a786d17f780731778b4b
* | | Improve personality initializationDmitriy Ivanov2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Personality parameter should be unsigned int (not long) 2. Do not reset bits outside of PER_MASK when setting personality value. 3. Set personality for static executables. Bug: http://b/21900686 Change-Id: I4c7e34079cbd59b818ce221eed325c05b9bb2303
* | | Remove libdl* tests from bionic-unit-tests-staticDmitriy Ivanov2015-06-221-3/+1
| | | | | | | | | | | | | | | | | | Bug: http://b/21900592 Change-Id: I907cc15684b121ec2fbdeca49fc584bb6d2eaacc (cherry picked from commit de4e27e231143e4e1982b4ca9effd03c1ca12d86)
* | | am 8beb0c34: am b245bc75: am 0f455612: Merge "Fix flaky test of ↵Yabin Cui2015-06-191-3/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | timer_create_multiple in L." into lollipop-mr1-cts-dev * commit '8beb0c34da46a5146a2de8256db8bb42febb283c': Fix flaky test of timer_create_multiple in L.
| * | am b245bc75: am 0f455612: Merge "Fix flaky test of timer_create_multiple in ↵Yabin Cui2015-06-191-3/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | L." into lollipop-mr1-cts-dev * commit 'b245bc750021ce6d220e71625fca66620cdd1f05': Fix flaky test of timer_create_multiple in L.
| | * Fix flaky test of timer_create_multiple in L.Yabin Cui2015-06-181-3/+3
| | | | | | | | | | | | | | | Bug: 20677618 Change-Id: I0cb5faf77edce042b10611543180f3e2e73d3d05
| | * Merge "Make sys_resource test more robust." into lollipop-cts-devYabin Cui2015-06-021-44/+68
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | automerge: 492a0bf * commit '492a0bf212973baa1c33d584d57e75395774447f': Make sys_resource test more robust.
| | | * Make sys_resource test more robust.Yabin Cui2015-06-021-44/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19482626 "ulimit -c xxx" command may run before bionic-unit-tests. Make sure sys_resource test fails gently in that case. Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa (cherry picked from commit 4853f40f3fb6664cb1b7af97b6b3e795717026b1)
* | | | Add a sys/procfs.h.Dan Albert2015-06-152-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed for building gdbserver out of the box. Bug: http://b/21695943 Bug: https://code.google.com/p/android/issues/detail?id=86712 Change-Id: Ieadda2b595f08bfddfa61fcd68006b8e7c1a438d (cherry picked from commit bf18c61798d1ae9197ae087ed85e94eef55e8678)
* | | | Merge "Make path to apk compliant with jar url format" into mnc-devDmitriy Ivanov2015-06-111-2/+2
|\ \ \ \
| * | | | Make path to apk compliant with jar url formatDmitriy Ivanov2015-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21726698 Bug: http://b/8076853 Change-Id: I8c1942a98fe3119746b4dc9f60a7ff215ea7009c
* | | | | Add process_vm_readv and process_vm_writev.Elliott Hughes2015-06-102-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21761353 Change-Id: Ic8ef3f241d62d2a4271fbc783c8af50257bac498 (cherry picked from commit be57a40d2973739c4fb0aa1cfb0014f34aeec2bd)
* | | | | Fix application_sdk_versions_smoke testDmitriy Ivanov2015-06-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21364029 Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
* | | | | Allow NULL in pthread_mutex_lock/unlock.Christopher Ferris2015-06-091-0/+34
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pthread_mutex_lock and pthread_mutex_unlock were allowed to fail silently on L 32 bit devices when passed a NULL. We changed this to a crash on 32 bit devices, but there are still games that make these calls and are not likely to be updated. Therefore, once again allow NULL to be passed in on 32 bit devices. Bug: 19995172 Change-Id: If7e8860075ecd63c0064d80f64e226fad7bd3c26
* | | | libc: Add O_PATH support for fgetxattr / fsetxattrNick Kralevich2015-06-022-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support O_PATH file descriptors when handling fgetxattr and fsetxattr. This avoids requiring file read access to pull extended attributes. This is needed to support O_PATH file descriptors when calling SELinux's fgetfilecon() call. In particular, this allows the querying and setting of SELinux file context by using something like the following code: int dirfd = open("/path/to/dir", O_DIRECTORY); int fd = openat(dirfd, "file", O_PATH | O_NOFOLLOW); char *context; fgetfilecon(fd, &context); This change was motivated by a comment in https://android-review.googlesource.com/#/c/152680/1/toys/posix/ls.c (cherrypicked from commit 2825f10b7f61558c264231a536cf3affc0d84204) Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf
* | | | Fix dlsym(handle_of_main_executable, ...)Dmitriy Ivanov2015-06-012-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to man dlopen(3) and posix docs in the case when si is handle of the main executable we need to search not only in the executable and its dependencies but also in all libraries loaded with RTLD_GLOBAL. see also: http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html Bug: http://b/21528224 Bug: http://b/17512583 Bug: https://code.google.com/p/android/issues/detail?id=173822 Change-Id: Ib2801367ba48b6f3704da89a6d9f5e6911430013 (cherry picked from commit f439b5a3186ca0fef1092f45770abc716da9d87a)
* | | | Cleanup ftruncate negative test.Dan Albert2015-06-011-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses post-submit comments from I54692ab8105dd09db6af7a2c0894a17bdd118aa0. Bug: http://b/21309901 Change-Id: Ie19ee8cdcc4055a65fe7dfc103156e54eafe8977 (cherry picked from commit 9d476a02e9a14e847669a6683c585028175aa322)
* | | | Fix error handling for negative size in ftruncate.Dan Albert2015-06-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 21309901 Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0 (cherry picked from commit c05554ec5c9aff5e0f1e83de9bb62c3569eecca2)
* | | | Add functions to provide target sdk versionDmitriy Ivanov2015-05-272-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21364029 Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a (cherry picked from commit 79fd668bb4ddb22432eeda2ebd8d10359013d9a8)
* | | | am fd20a8c2: resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-devYabin Cui2015-05-201-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'fd20a8c2d669b3f2d63e2d33a32b90d1b7f17b82': Fix timer flaky test in lollipop-mr1-cts-dev.
| * | | resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-devYabin Cui2015-05-201-3/+3
| |\ \ \ | | |/ / | | | | | | | | Change-Id: I48269218b152054d527d9257d40490b54205140f
| | * | Fix timer flaky test in lollipop-mr1-cts-dev.Yabin Cui2015-05-081-73/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is partically cherry-pick from https://android-review.googlesource.com/#/c/123410/. And as lollipop-mr1-cts-dev still uses stlport, <stdatomic.h> is used instead of <atomic>. Bug: 20677618 Change-Id: I952a6fd074facc4227c955fecf3ecbfbbaec4193
| | * | Modify test to avoid race condition.Christopher Ferris2015-02-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a possible race if a timer is set to trigger at nearly the same time as it is set. Since nobody uses the timers like this, modify the test so this doesn't happen. The race that this can provoke has been fixed in aosp. Bug: 19423618 Change-Id: I21084c99da5ae46f404936d673dae6bad7c82caa
| | * | Avoid pathological behavior in OpenBSD's fread.Elliott Hughes2014-12-021-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 20841a137beac5caa824e3586c7bd91d879ff92e) Bug: https://code.google.com/p/android/issues/detail?id=81155 Bug: 18556607 Change-Id: Ibdfebc20dce4c34ad565014523c9b074e90ea665
| | * | Revert "Fix dlsym() to take into account RTLD_GLOBAL/LOCAL"Dmitriy Ivanov2014-11-032-37/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c85e82dde5c4b2accc50a9e17740b9005dfbae6a. Bug: 18222321 Bug: 18211780 Change-Id: I32f4048bd5ea85dc8a3dfccce8cf141b241ab692
| | * | Revert "Add RTLD_NODELETE flag support"Dmitriy Ivanov2014-11-035-201/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c87f65d2cd0690d81665f8b241c1d763f72b6f80. Bug: 18222321 Bug: 18211780 Change-Id: I00252e26a28a41ab9f1e2dd3b32f0f80d86297f1
| | * | Revert "Fix relocation to look for symbols in local group"Dmitriy Ivanov2014-11-0311-564/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit fd2747bb585fc51b5ad56db09c0e9b66c7091a92. Bug: 18222321 Bug: 18211780 Change-Id: I2d4ebab1e73b7277161af76b99f8249825b22d65
| | * | Revert "Fix symbol lookup order during relocation"Dmitriy Ivanov2014-11-038-257/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 976402cca13a1f4f3aa988fd301575e134ef5f2c. Bug: 18222321 Bug: 18211780 Change-Id: Iafdd3d843db7b1cf288be9a0232022816622c944
| | * | Revert "Fix arm64 and arm builds."Dmitriy Ivanov2014-11-033-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 445111a1c977e94a4233efd54f3690defa4a7582. Bug: 18222321 Bug: 18211780 Change-Id: I4fa9e1b63ec9b528f8bfed73c2ec15046c43a2fe
| | * | Ensure we initialize stdin/stdout/stderr's recursive mutexes.Elliott Hughes2014-11-031-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry-pick of 6a03abcfd23f31d1df06eb0059830e22621282bb.) Bug: 18208568 Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
| | * | Fix arm64 and arm builds.Dmitriy Ivanov2014-10-313-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18186310 (cherry picked from commit 4e446b19d8710cd2004785db4a00f18f249fe73f) Change-Id: Ibc77a9ade36dc6b9bf5a316b5ab9ae5f0a70e826
| | * | 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 Bug: 18186310 (cherry picked from commit d225a5e65223b375a63548c4b780f04d8f3d7b60) Change-Id: I4e889cdf2dfbf8230b0790053d311ee6b0d0ee2d
| | * | Fix relocation to look for symbols in local groupDmitriy Ivanov2014-10-3111-83/+564
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The local group is a sequence of libraries in default (breadth-first) order. It allows RTLD_LOCALLY loaded library to correctly relocate symbols within its group (see test-cases). Local group lookup is performed after main executable and ld_preloads. Bug: 2643900 Bug: 15432753 Bug: 18186310 (cherry picked from commit cfa97f172dc1b10d650fefbb6ccffd88ce72a5fb) Change-Id: I5fa8c673f929e4652c738912c7ae078d7ec286d2
| | * | Correct way to specify additional dependenciesDmitriy Ivanov2014-10-313-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous one was not covering all the targets Bug: 17548097 Bug: 18186310 (cherry picked from commit 4a9e1937c56511aef579312bf39ab345f9179230) Change-Id: I2cd9e58893555d16cbfe291b2d1279621489d5ad
| | * | Add dlfcn_test to glibc test suite.Dmitriy Ivanov2014-10-315-79/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18186310 (cherry picked from commit eb27bbae8f0edc6b62ca2db73256c7fb53b9e9bf) Change-Id: I1d608dfa12dbafbdcdb8bc6d818c5872404c19e0
| | * | Add RTLD_NODELETE flag supportDmitriy Ivanov2014-10-315-0/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18186310 Bug: https://code.google.com/p/android/issues/detail?id=64069 (cherry picked from commit 1b20dafdbe65e43b9f4c95057e8482380833ea91) Change-Id: Ic02eec22a7c322ece65eb40730a3404f611526b1
| | * | Fix dlsym() to take into account RTLD_GLOBAL/LOCALDmitriy Ivanov2014-10-312-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symbols from libraries opened with RTLD_LOCAL (default) should not be visible via dlsym(RLTD_DEFAULT/RTLD_NEXT, .) Bug: 17512583 Bug: 18186310 (cherry picked from commit e8ba50fe0d51fbefee1a8f5bb62bf51d841512c8) Change-Id: Idf6bbe2233fb2bfc0c88677e7d1fc518fb3f7a8b