summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix optimized fread.Elliott Hughes2015-01-241-1/+55
| | | | | | | | gcov does writes after reads on the same stream, but the bulk read optimization was clobbering the FILE _flags, causing fwrite to fail. Bug: 19129055 Change-Id: I9650cb7de4bb173a706b502406266ed0d2b654d7
* Merge "Minimize calls to mprotect"Dmitriy Ivanov2015-01-243-0/+63
|\
| * Minimize calls to mprotectDmitriy Ivanov2015-01-233-0/+63
| | | | | | | | | | | | | | | | | | | | Implement refcounter based data protection guard to avoid unnecessary calls to mprotect when dlopen/dlclose is called from a constructor. Bug: 19124318 Big: 7941716 Change-Id: Id221b84ce75443094f99756dc9950b0a1dc87222
* | Allow make to set a timeout for the host tests.Dan Albert2015-01-231-0/+5
|/ | | | Change-Id: Icc2ebf64bd1da1687bf313fe7a5640155c5795d8
* There's no such thing as LOCAL_CXXFLAGS.Elliott Hughes2015-01-221-2/+2
| | | | Change-Id: Iad70e6bd4cb7cec9e0ece500a540e4dadc83d92e
* Fix the stdio.fread_EOF test.Elliott Hughes2015-01-221-7/+8
| | | | | | | | | | Another sizeof/strlen screwup caused by trying to be too clever. Use std::string instead. Also fix all the ASSERT_STREQ calls in this file that had the arguments the right^Wwrong way round. If I ever see Kent Beck... Change-Id: I47a1bdfee99cf4e7bed9b398f3158a308fbcf1e8
* Fix fread_EOF test name.Elliott Hughes2015-01-221-1/+1
| | | | Change-Id: I53a7f1428fd27c0b2a5c80f2e8af4845d17f5b4b
* Implement __fsetlocking.Elliott Hughes2015-01-211-1/+4
| | | | | | | | | | | | The old __isthreaded hack was never very useful on Android because all user code runs in a VM where there are lots of threads running. But __fsetlocking lets a caller say "I'll worry about the locking for this FILE*", which is useful for the normal case where you don't share a FILE* between threads so you don't need any locking. Bug: 17154740 Bug: 18593728 Change-Id: I2a8dddc29d3edff39a3d7d793387f2253608a68d
* Merge "Optimized fread."Elliott Hughes2015-01-211-0/+22
|\
| * Optimized fread.Elliott Hughes2015-01-201-0/+22
| | | | | | | | | | | | | | | | | | This makes us competitive with glibc for fully-buffered and unbuffered reads, except in single-threaded situations where glibc avoids locking, but since we're never really single-threaded anyway, that isn't a priority. Bug: 18593728 Change-Id: Ib776bfba422ccf46209581fc0dc54f3567645b8f
* | Remove testcase time printing in bionic-unit-tests.Yabin Cui2015-01-201-16/+0
| | | | | | | | | | Bug: 19075565 Change-Id: Icccb60657a2985e96abb1703673f0ebe2199586a
* | Add target libbionic_gtest_main for cts test.Yabin Cui2015-01-201-5/+20
| | | | | | | | | | Bug: 17589740 Change-Id: I37f2d3fe72870b9dc867407fa1619c9a6fcd5cbb
* | Merge "Improve <stdio_ext.h> testing."Elliott Hughes2015-01-201-0/+6
|\ \ | |/ |/|
| * Improve <stdio_ext.h> testing.Elliott Hughes2015-01-161-0/+6
| | | | | | | | | | | | I almost fixed a non-bug. Add a test to prevent me from doing that. Change-Id: I4a1dc13e603a7a377bdaee2e78132015087f7107
* | Merge "Make sys_resource test more robust."Yabin Cui2015-01-161-44/+68
|\ \
| * | Make sys_resource test more robust.Yabin Cui2015-01-161-44/+68
| | | | | | | | | | | | | | | | | | | | | "ulimit -c xxx" command may run before bionic-unit-tests. Make sure sys_resource test fails gently in that case. Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa
* | | Fix possible leak in pthread_detach.Yabin Cui2015-01-151-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | If pthread_detach() is called while the thread is in pthread_exit(), it takes the risk that no one can free the pthread_internal_t. So I add PTHREAD_ATTR_FLAG_ZOMBIE to detect this, maybe very rare, but both glibc and netbsd libpthread have similar function. Change-Id: Iaa15f651903b8ca07aaa7bd4de46ff14a2f93835
* | | Merge "Make bionic-unit-tests default run isolate mode."Yabin Cui2015-01-151-204/+222
|\ \ \
| * | | Make bionic-unit-tests default run isolate mode.Yabin Cui2015-01-081-204/+222
| |/ / | | | | | | | | | | | | | | | | | | | | | Fix bug of handling signal terminated tests. Bug: 17589740 Bug: 18951146 Change-Id: I4803382b26cd5454693090202b3ba38e3dbe66e5
* | | Test that ip6-localhost exists in etc/hosts.Yabin Cui2015-01-131-18/+65
| |/ |/| | | | | | | | | | | Addition change: make netdb_test pass on host. Bug: 18791191 Change-Id: I7a9e29aa559ff6557288b47323d8a436379201a2
* | Fix freeaddrinfo(NULL).Elliott Hughes2015-01-081-0/+5
| | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=13228 Change-Id: I5e3b126d90d750a93ac0b8872198e50ba047e603
* | Make pthread stack size match real range.Yabin Cui2015-01-081-5/+27
| | | | | | | | | | Bug: 18908062 Change-Id: I7037ac8273ebe54dd19b1561c7a376819049124c
* | Set linux 32bit personality for 32 bit processesDmitriy Ivanov2015-01-072-0/+34
|/ | | | | Bug: 18069809 Change-Id: Ie143d56b0f8f03510dc451649291067e1add1d2f
* Merge "better gtest runner for bionic"Yabin Cui2015-01-024-31/+822
|\
| * better gtest runner for bionicYabin Cui2014-12-134-31/+822
| | | | | | | | | | | | | | | | | | 1. option to run each test in a separate forked process: "--isolate". 2. warnings about slow tests: "--warnline". 3. run multiple tests at the same time: "-j N". Bug: 17589740 Change-Id: Ife5f4cafec43aa051ad7bd9c9b2b7e2e437db0de
* | Merge "Reserve enough user request stack space in pthread_create."Yabin Cui2015-01-021-2/+1
|\ \
| * | Reserve enough user request stack space in pthread_create.Yabin Cui2015-01-021-2/+1
| | | | | | | | | | | | | | | Bug: 18830897 Change-Id: I1ba4aaeaf66a7ff99c5d82ad45469011171b0a3b
* | | Merge "Fix nan output in the printf family."Elliott Hughes2014-12-211-16/+60
|\ \ \ | |/ / |/| |
| * | Fix nan output in the printf family.Elliott Hughes2014-12-201-16/+60
| | | | | | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=82452 Change-Id: I51f226c8b033de6e81baeea5e6db3de6ed196f73
* | | Merge "Sync with upstream for gethnamaddr.c."Yabin Cui2014-12-181-3/+123
|\ \ \ | |/ / |/| |
| * | Sync with upstream for gethnamaddr.c.Yabin Cui2014-12-171-3/+123
| |/ | | | | | | | | Bug: 18566967 Change-Id: I37e7410226b49eec67614e20b2c1d5e3e47817a5
* | Merge "Add another test for weak-reference"Dmitriy Ivanov2014-12-163-1/+47
|\ \ | |/ |/|
| * Add another test for weak-referenceDmitriy Ivanov2014-12-163-1/+47
| | | | | | | | | | | | | | This one covers undefined weak reference in .so referenced via JUMP_SLOT relocation. Bug: 17526061 Change-Id: Ib8764bd30c1f686c4818ebbc6683cf42dee908b2
* | Fix pthread key num calculation.Yabin Cui2014-12-122-14/+13
|/ | | | | Bug: 18723085 Change-Id: Iba2c834b350e4cdba0b2d771b221560a3e5df952
* make stack_protector_DeathTest work for gcc4.9Yabin Cui2014-12-111-0/+6
| | | | | Bug: 18721888 Change-Id: I5f0b5c84319f56dbc4efb88e9d828138944667ae
* Fix the setjmp tests for mips.Elliott Hughes2014-12-101-37/+41
| | | | | | | | | | | | | | | | | | | | | | Although the LP32 mips sigset_t is large enough to represent all signals, their jmp_buf is too small. This test succeeded on arm and x86 because the RT signals were never in the 'expected' sigset_t, so the equality comparison with the 'actual' sigset_t worked fine --- everyone was blind to the RT signal. On mips the tests fail because the 'expected' sigset_t does contain the RT signal but the 'actual' doesn't because the jmp_buf only saves and restores the first 32 signals. There are 32 free bits (currently used as padding) in the LP32 mips jmp_buf, and they might choose to use those to provide better support than the other two platforms, but I'll leave that to them. It will be easy to just remove the #if defined(__LP64__) from this change in that case. For mips64 it's not to late to increase the size of the jmp_buf and fix the setjmp family, but since there are decisions to be made here for LP32, I'll leave it all to Imagination folks... Bug: 16918359 Change-Id: I6b723712fce0e9210dafa165d8599d950b2d3500
* Merge "support _POSIX_REALTIME_SIGNALS"Yabin Cui2014-12-094-22/+154
|\
| * support _POSIX_REALTIME_SIGNALSYabin Cui2014-12-084-22/+154
| | | | | | | | | | Bug: 18489947 Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
* | Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."Yabin Cui2014-12-091-2/+2
|\ \
| * | Change _POSIX_CPUTIME macro to make it compitable with glibc.Yabin Cui2014-12-091-2/+2
| | | | | | | | | | | | Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
* | | Fix signal mask save/restore for x86-64.Elliott Hughes2014-12-081-22/+26
|/ / | | | | | | | | Bug: 16918359 Change-Id: I30bf61e7d5f1c21daa3a1a21d361e98d77220bf3
* | implement posix_madviseYabin Cui2014-12-042-3/+46
| | | | | | | | | | Bug: 18472477 Change-Id: I8183de6c281acf69ed5f7f88351b056b9827b162
* | Implement <pty.h>.Elliott Hughes2014-12-033-1/+95
| | | | | | | | | | | | | | Based on the package/apps/Terminal implementation. I'll switch them over shortly. This also lets us build the toybox version of netcat. Change-Id: Ia922a100141a67409264b43b937eeca07b21f344
* | Merge "Extract bionic-prepare-run-on-host to inc file."Dmitriy Ivanov2014-12-031-32/+10
|\ \
| * | Extract bionic-prepare-run-on-host to inc file.Dmitriy Ivanov2014-12-021-32/+10
| | | | | | | | | | | | | | | | | | Make benchmark run-on-host depend on bionic-prepare-run-on-host. Change-Id: I0bdbf561b2580d607a49b7c83cc273320ac55429
* | | Avoid pathological behavior in OpenBSD's fread.Elliott Hughes2014-12-021-0/+31
|/ / | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=81155 Bug: 18556607 Change-Id: Idc60976b79610e2202cc42dc393dcb4ca6c42e05
* | Create /system/lib(64)? symlinks for host tests.Dmitriy Ivanov2014-12-021-2/+4
| | | | | | | | | | | | | | | | | | Replace LD_LIBRARY_PATH with default path for the tests run on host. Bug: 18589961 Change-Id: Id4a84b73d25c2ca9c557fcfa19b8169daeaa016b
* | Merge "Count references for groups instead of instances"Dmitriy Ivanov2014-12-029-27/+238
|\ \
| * | Count references for groups instead of instancesDmitriy Ivanov2014-12-029-27/+238
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Count references on the group level to avoid partially unloading function that might be referenced by other libraries in the local_group Bonus: with this change we can correctly unload recursively linked libraries. is_recursive check is removed. Also dynamic executables (not .so) with 0 DT_NEEDED libraries are now correctly linked. Change-Id: Idfa83baef402840599b93a875f2881d9f020dbcd
* | restore sigprocmask in setjmp/longjmp test.Yabin Cui2014-12-022-6/+18
| | | | | | | | | | Bug: 18571921 Change-Id: Ib8ca7a36abd3ccc729c20c0e32d45b1b33069f65