Yabin Cui
deab11acd7
Merge "Make bionic-unit-tests default run isolate mode."
2015-01-15 18:10:30 +00:00
Yabin Cui
a35cd8cdc2
Test that ip6-localhost exists in etc/hosts.
...
Addition change: make netdb_test pass on host.
Bug: 18791191
Change-Id: I7a9e29aa559ff6557288b47323d8a436379201a2
2015-01-13 17:30:51 -08:00
Yabin Cui
be837360c3
Make bionic-unit-tests default run isolate mode.
...
Fix bug of handling signal terminated tests.
Bug: 17589740
Bug: 18951146
Change-Id: I4803382b26cd5454693090202b3ba38e3dbe66e5
2015-01-08 20:34:58 -08:00
Elliott Hughes
c62a4b5a7a
Fix freeaddrinfo(NULL).
...
Bug: https://code.google.com/p/android/issues/detail?id=13228
Change-Id: I5e3b126d90d750a93ac0b8872198e50ba047e603
2015-01-08 17:28:46 -08:00
Yabin Cui
917d390510
Make pthread stack size match real range.
...
Bug: 18908062
Change-Id: I7037ac8273ebe54dd19b1561c7a376819049124c
2015-01-08 14:27:24 -08:00
Dmitriy Ivanov
bfa15e464e
Set linux 32bit personality for 32 bit processes
...
Bug: 18069809
Change-Id: Ie143d56b0f8f03510dc451649291067e1add1d2f
2015-01-07 16:32:05 -08:00
Yabin Cui
597800f1d7
Merge "better gtest runner for bionic"
2015-01-02 22:38:41 +00:00
Yabin Cui
541b0b187d
Merge "Reserve enough user request stack space in pthread_create."
2015-01-02 22:37:56 +00:00
Yabin Cui
6a7aaf4675
Reserve enough user request stack space in pthread_create.
...
Bug: 18830897
Change-Id: I1ba4aaeaf66a7ff99c5d82ad45469011171b0a3b
2015-01-02 14:33:48 -08:00
Elliott Hughes
ba09edcb41
Merge "Fix nan output in the printf family."
2014-12-21 02:54:06 +00:00
Elliott Hughes
1b18aff9ba
Fix nan output in the printf family.
...
Bug: https://code.google.com/p/android/issues/detail?id=82452
Change-Id: I51f226c8b033de6e81baeea5e6db3de6ed196f73
2014-12-20 18:53:08 -08:00
Yabin Cui
370a3e573d
Merge "Sync with upstream for gethnamaddr.c."
2014-12-18 01:06:10 +00:00
Yabin Cui
58d33a51f3
Sync with upstream for gethnamaddr.c.
...
Bug: 18566967
Change-Id: I37e7410226b49eec67614e20b2c1d5e3e47817a5
2014-12-17 16:19:27 -08:00
Dmitriy Ivanov
92b9cb2c89
Merge "Add another test for weak-reference"
2014-12-16 22:01:47 +00:00
Dmitriy Ivanov
bfa88bca5c
Add another test for weak-reference
...
This one covers undefined weak reference in .so
referenced via JUMP_SLOT relocation.
Bug: 17526061
Change-Id: Ib8764bd30c1f686c4818ebbc6683cf42dee908b2
2014-12-16 19:46:45 +00:00
Yabin Cui
294d1e2c9e
better gtest runner for bionic
...
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
2014-12-13 18:53:34 -08:00
Yabin Cui
6c238f2926
Fix pthread key num calculation.
...
Bug: 18723085
Change-Id: Iba2c834b350e4cdba0b2d771b221560a3e5df952
2014-12-12 17:00:08 -08:00
Yabin Cui
562ae1e6e4
make stack_protector_DeathTest work for gcc4.9
...
Bug: 18721888
Change-Id: I5f0b5c84319f56dbc4efb88e9d828138944667ae
2014-12-11 17:24:55 -08:00
Elliott Hughes
1510a1c1ae
Fix the setjmp tests for mips.
...
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
2014-12-10 11:48:19 -08:00
Yabin Cui
94926f8cfa
Merge "support _POSIX_REALTIME_SIGNALS"
2014-12-09 20:10:19 +00:00
Yabin Cui
b033761cbf
Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."
2014-12-09 17:51:37 +00:00
Yabin Cui
725756045e
Change _POSIX_CPUTIME macro to make it compitable with glibc.
...
Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
2014-12-09 09:16:11 -08:00
Yabin Cui
634816055f
support _POSIX_REALTIME_SIGNALS
...
Bug: 18489947
Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
2014-12-08 21:52:43 -08:00
Elliott Hughes
1c0c0ede57
Fix signal mask save/restore for x86-64.
...
Bug: 16918359
Change-Id: I30bf61e7d5f1c21daa3a1a21d361e98d77220bf3
2014-12-08 12:46:15 -08:00
Yabin Cui
5afae64a1b
implement posix_madvise
...
Bug: 18472477
Change-Id: I8183de6c281acf69ed5f7f88351b056b9827b162
2014-12-04 11:01:28 -08:00
Elliott Hughes
65f0df7873
Implement <pty.h>.
...
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
2014-12-03 15:55:34 -08:00
Dmitriy Ivanov
6995c1dcb5
Merge "Extract bionic-prepare-run-on-host to inc file."
2014-12-03 00:02:13 +00:00
Dmitriy Ivanov
06b1b8ceac
Extract bionic-prepare-run-on-host to inc file.
...
Make benchmark run-on-host depend on bionic-prepare-run-on-host.
Change-Id: I0bdbf561b2580d607a49b7c83cc273320ac55429
2014-12-02 15:15:34 -08:00
Elliott Hughes
27d276f3a6
Avoid pathological behavior in OpenBSD's fread.
...
(cherry picked from commit 20841a137beac5caa824e3586c7bd91d879ff92e)
Bug: https://code.google.com/p/android/issues/detail?id=81155
Bug: 18556607
Change-Id: Ibdfebc20dce4c34ad565014523c9b074e90ea665
2014-12-02 14:54:52 -08:00
Elliott Hughes
20841a137b
Avoid pathological behavior in OpenBSD's fread.
...
Bug: https://code.google.com/p/android/issues/detail?id=81155
Bug: 18556607
Change-Id: Idc60976b79610e2202cc42dc393dcb4ca6c42e05
2014-12-02 14:22:02 -08:00
Dmitriy Ivanov
a55126f1f6
Create /system/lib(64)? symlinks for host tests.
...
Replace LD_LIBRARY_PATH with default path for
the tests run on host.
Bug: 18589961
Change-Id: Id4a84b73d25c2ca9c557fcfa19b8169daeaa016b
2014-12-02 12:11:08 -08:00
Dmitriy Ivanov
291dbf65ca
Merge "Count references for groups instead of instances"
2014-12-02 19:10:04 +00:00
Dmitriy Ivanov
ab972b9adf
Count references for groups instead of instances
...
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
2014-12-02 10:54:26 -08:00
Yabin Cui
e323e99ffb
restore sigprocmask in setjmp/longjmp test.
...
Bug: 18571921
Change-Id: Ib8ca7a36abd3ccc729c20c0e32d45b1b33069f65
2014-12-02 10:35:25 -08:00
Yabin Cui
3e6ef3f902
Merge "support _POSIX_CPUTIME"
2014-12-01 17:06:02 +00:00
Yongqin Liu
9fea4090f1
bionic tests: add setjmp/_setjmp/sigsetjmp tests.
...
Bug: 17288973
Change-Id: I2808eee58cbddae1b16fbe19a715b72d6dbaaec3
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2014-11-26 17:31:24 -08:00
Yabin Cui
d5c652756b
support _POSIX_CPUTIME
...
Bug: 18490039
Change-Id: I01fa83b48e1b908de1f227b6e4f98e280bcd50ee
2014-11-26 17:14:50 -08:00
Yabin Cui
eb3a5e026e
Merge "flesh out sysconf(3) and the _POSIX_* constants"
2014-11-24 01:59:23 +00:00
Yabin Cui
1c19194c9d
flesh out sysconf(3) and the _POSIX_* constants
...
Bug: 17571891
Change-Id: I81036615486bde65969ae5662587fcc88348474e
2014-11-21 19:10:52 -08:00
Dmitriy Ivanov
0864d8bc47
Rename test_forked -> test_isolated
...
Change-Id: Ie72627e986c159832cbd3635d8ff5b1af3d5b1eb
2014-11-20 22:53:59 -08:00
Dmitriy Ivanov
8b4b827338
Merge "Add test_forked() option"
2014-11-21 01:21:16 +00:00
Dmitriy Ivanov
00e37818a7
Add test_forked() option
...
Executing test via test_forked() allows us to
avoid undesired global state changes in tests like
atexit, dlopen(.., RTLD_NODELETE) and similar.
Change-Id: I118cdf009269ab5dd7b117c9b61dafa47de2a011
2014-11-20 17:11:06 -08:00
Elliott Hughes
770198d3f7
Merge "Make the ftw(3) tests a bit more thorough."
2014-11-20 00:09:32 +00:00
Elliott Hughes
63bd43bbdc
Make the ftw(3) tests a bit more thorough.
...
These also test much of fts(3).
Change-Id: Ia9245d6acbbd071191563ab1b91a400044104028
2014-11-19 15:47:53 -08:00
Dmitriy Ivanov
6b48b20a1e
Merge "Yet another relocation test"
2014-11-19 19:35:59 +00:00
Dmitriy Ivanov
7699d13a74
Yet another relocation test
...
This time we check if a -> b -> c function in 'a' relocates against
implementation in 'c'.
Change-Id: I528180c3efd346bd447ea0237e5a8a0ac3cc031f
2014-11-19 10:39:05 -08:00
Yabin Cui
649f78df79
Merge "fix shared gid support in getpwnam/getgrnam"
2014-11-19 04:25:24 +00:00
Yabin Cui
a04c79b9d3
fix shared gid support in getpwnam/getgrnam
...
Bug: 18374693
Change-Id: I5353403cbbead6f6abac87bee2cf53a60dba408c
2014-11-18 19:58:04 -08:00
Dmitriy Ivanov
a2547055f2
Fix jump to unmapped memory on atexit
...
Split d-tor calls and soinfo_free to 2 separate steps
Bug: 18338888
Change-Id: Idbcb7242ade16fa18cba7fe30505ebd8d6023622
2014-11-18 13:16:27 -08:00
Elliott Hughes
8eda0a6d69
Merge "libc: Fix mktime returns an uncorrect time in empty TZ case"
2014-11-17 23:14:58 +00:00