| Index: base/threading/thread_local_storage_unittest.cc
|
| diff --git a/base/threading/thread_local_storage_unittest.cc b/base/threading/thread_local_storage_unittest.cc
|
| index ec75f7f8dd597207b7a09cc46834d26d960bb30c..335252b18ed5a079cdcecc3e809f9a0adae13399 100644
|
| --- a/base/threading/thread_local_storage_unittest.cc
|
| +++ b/base/threading/thread_local_storage_unittest.cc
|
| @@ -128,9 +128,12 @@ TEST(ThreadLocalStorageTest, MAYBE_TLSDestructors) {
|
| }
|
|
|
| TEST(ThreadLocalStorageTest, TLSReclaim) {
|
| - // Creates and destroys many TLS slots.
|
| + // Creates and destroys many TLS slots and ensures they all zero-inited.
|
| for (int i = 0; i < 1000; ++i) {
|
| ThreadLocalStorage::Slot slot(nullptr);
|
| + EXPECT_EQ(nullptr, slot.Get());
|
| + slot.Set(reinterpret_cast<void*>(0xBAADF00D));
|
| + EXPECT_EQ(reinterpret_cast<void*>(0xBAADF00D), slot.Get());
|
| }
|
| }
|
|
|
|
|