summaryrefslogtreecommitdiff
path: root/tests/elftls_test.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2019-02-13 00:26:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-02-13 00:26:51 +0000
commit40f18976dbb8bc3def6c65f13c94e8c4a345fc20 (patch)
tree71d18b2d6daa6b663db9cc38884eb25af509e1f4 /tests/elftls_test.cpp
parentc682e3b6e5549aea7be655f81bf22a4431c9c955 (diff)
parent7fda2c9495b95a9ac956c3bee9d989b3a93340f1 (diff)
Merge "Only test tprel_missing_weak in dynamic binaries"
Diffstat (limited to 'tests/elftls_test.cpp')
-rw-r--r--tests/elftls_test.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/elftls_test.cpp b/tests/elftls_test.cpp
index 2d83d7080..7c072b62f 100644
--- a/tests/elftls_test.cpp
+++ b/tests/elftls_test.cpp
@@ -30,8 +30,6 @@
#include <thread>
-#include "private/__get_tls.h"
-
// Specify the LE access model explicitly. This file is compiled into the
// bionic-unit-tests executable, but the compiler sees an -fpic object file
// output into a static library, so it defaults to dynamic TLS accesses.
@@ -64,17 +62,9 @@ TEST(elftls, shared_ie) {
}).join();
}
-extern "C" int* missing_weak_tls_addr();
extern "C" int bump_static_tls_var_1();
extern "C" int bump_static_tls_var_2();
-TEST(elftls, tprel_missing_weak) {
- ASSERT_EQ(static_cast<void*>(__get_tls()), missing_weak_tls_addr());
- std::thread([] {
- ASSERT_EQ(static_cast<void*>(__get_tls()), missing_weak_tls_addr());
- }).join();
-}
-
TEST(elftls, tprel_addend) {
ASSERT_EQ(4, bump_static_tls_var_1());
ASSERT_EQ(8, bump_static_tls_var_2());