diff options
author | Elliott Hughes <enh@google.com> | 2013-02-12 17:20:42 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-02-12 17:55:22 -0800 |
commit | 9701d4b7018ea50f57601eaec5f8f6731a7c6510 (patch) | |
tree | 34108258f5ae4aa76e6614f1991355da5bf9d7b3 /tests | |
parent | 991ee7d89574e8d04c8863a2850613073a2f96b3 (diff) | |
download | bionic-9701d4b7018ea50f57601eaec5f8f6731a7c6510.zip bionic-9701d4b7018ea50f57601eaec5f8f6731a7c6510.tar.gz bionic-9701d4b7018ea50f57601eaec5f8f6731a7c6510.tar.bz2 |
Give up trying to build the pthread_setname_np tests for glibc.
Looks like using /usr/bin/g++ isn't enough on some of our older
build servers.
Change-Id: Id7681fb164eb6324b10050f6bb237393e95b41e9
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pthread_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pthread_test.cpp b/tests/pthread_test.cpp index 00aa4b1..931a4c7 100644 --- a/tests/pthread_test.cpp +++ b/tests/pthread_test.cpp @@ -196,20 +196,27 @@ TEST(pthread, __pthread_clone) { } #endif +#if __BIONIC__ // Not all build servers have a new enough glibc? TODO: remove when they're on gprecise. TEST(pthread, pthread_setname_np__too_long) { ASSERT_EQ(ERANGE, pthread_setname_np(pthread_self(), "this name is far too long for linux")); } +#endif +#if __BIONIC__ // Not all build servers have a new enough glibc? TODO: remove when they're on gprecise. TEST(pthread, pthread_setname_np__self) { ASSERT_EQ(0, pthread_setname_np(pthread_self(), "short 1")); } +#endif +#if __BIONIC__ // Not all build servers have a new enough glibc? TODO: remove when they're on gprecise. TEST(pthread, pthread_setname_np__other) { pthread_t t1; ASSERT_EQ(0, pthread_create(&t1, NULL, SleepFn, reinterpret_cast<void*>(5))); ASSERT_EQ(0, pthread_setname_np(t1, "short 2")); } +#endif +#if __BIONIC__ // Not all build servers have a new enough glibc? TODO: remove when they're on gprecise. TEST(pthread, pthread_setname_np__no_such_thread) { pthread_t t1; ASSERT_EQ(0, pthread_create(&t1, NULL, IdFn, NULL)); @@ -219,3 +226,4 @@ TEST(pthread, pthread_setname_np__no_such_thread) { // Call pthread_setname_np after thread has already exited. ASSERT_EQ(ENOENT, pthread_setname_np(t1, "short 3")); } +#endif |