diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
commit | e65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch) | |
tree | 7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/nptl/tst-tls1.c | |
parent | 7988979a722b4cdf287b2093956a76a3f19b9897 (diff) |
rework most tests to work as standalone package
Diffstat (limited to 'test/nptl/tst-tls1.c')
-rw-r--r-- | test/nptl/tst-tls1.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/nptl/tst-tls1.c b/test/nptl/tst-tls1.c index a7cf8f4..9eadf66 100644 --- a/test/nptl/tst-tls1.c +++ b/test/nptl/tst-tls1.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003, 2004 Free Software Foundation, Inc. +/* Copyright (C) 2003-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2003. @@ -19,9 +19,8 @@ #include <pthread.h> #include <stdio.h> #include <stdlib.h> -#include <tls.h> -#if HAVE___THREAD + struct test_s { int a; @@ -51,19 +50,11 @@ tf (void *arg) return NULL; } -#endif int do_test (void) { -#if !HAVE___THREAD - - puts ("No __thread support in compiler, test skipped."); - - return 0; -#else - if (s.a != INIT_A || s.b != INIT_B) { puts ("initial value of s in main thread wrong"); @@ -113,7 +104,6 @@ do_test (void) } return 0; -#endif } |