diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-11-29 05:06:45 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-11-29 05:06:45 +0000 |
| commit | e036d8b2753b0909a05be36df58e5cbbb7eccaed (patch) | |
| tree | 19d9d396ba8e5799f9aa83d6564aeda6d74e208e | |
| parent | 1fa3a773a6ff444050c0a2714fe62da215fc8361 (diff) | |
| download | uClibc-alpine-e036d8b2753b0909a05be36df58e5cbbb7eccaed.tar.bz2 uClibc-alpine-e036d8b2753b0909a05be36df58e5cbbb7eccaed.tar.xz | |
Revert change to this test as it compiles without extra includes and
matches the glibc test.
| -rw-r--r-- | test/tls/tst-tls6.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/tls/tst-tls6.c b/test/tls/tst-tls6.c index 2f58ea6ad..68d706538 100644 --- a/test/tls/tst-tls6.c +++ b/test/tls/tst-tls6.c @@ -4,10 +4,6 @@ #include <link.h> #include <tls.h> -#ifdef __UCLIBC__ -#include "dl-elf.h" -#include "dl-hash.h" -#endif #define TEST_FUNCTION do_test () @@ -36,19 +32,6 @@ do_test (void) /* Dirty test code here: we peek into a private data structure. We make sure that the module gets assigned the same ID every time. The value of the first round is used. */ -#ifdef __UCLIBC__ - if (modid == -1) - modid = ((struct link_map *)((struct dyn_elf *)h)->dyn)->l_tls_modid; - else if (((struct link_map *)((struct dyn_elf *)h)->dyn)->l_tls_modid - != (size_t) modid) - { - printf ("round %d: modid now %zu, initially %d\n", - i, - ((struct link_map *)((struct dyn_elf *)h)->dyn)->l_tls_modid, - modid); - result = 1; - } -#else if (modid == -1) modid = ((struct link_map *) h)->l_tls_modid; else if (((struct link_map *) h)->l_tls_modid != modid) @@ -57,7 +40,6 @@ do_test (void) i, ((struct link_map *) h)->l_tls_modid, modid); result = 1; } -#endif foop = dlsym (h, "foo"); if (foop == NULL) |
