OSDN Git Service

Add tests for pthread TLS leak.
authorJosh Gao <jmgao@google.com>
Tue, 14 Mar 2017 00:10:46 +0000 (17:10 -0700)
committerJosh Gao <jmgao@google.com>
Wed, 15 Mar 2017 20:30:05 +0000 (13:30 -0700)
commit7d15dc388a5fb3d3e6f5097232d82ab2b9fe7ad2
tree4a9b51e2ff05f96694f2e859166f474595158b00
parentb1fe870a36d95f3064e45ff6bfedd061a860a179
Add tests for pthread TLS leak.

Add tests that ensure that threads don't leak memory mappings after
they exit.

Bug: http://b/36045112
Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests --gtest_filter=*leak*
Test: /data/nativetest64/bionic-unit-tests/bionic-unit-tests --gtest_filter=*leak*
Change-Id: Id0c1194b5d2bb7d89947b1ade16eb0d768d8c5b7
tests/Android.bp
tests/gtest_main.cpp
tests/leak_test.cpp [new file with mode: 0644]