summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 17:14:05 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 17:14:05 +0000
commit8a79a21e1ce62c4dd00919465fad68c966fbebe3 (patch)
tree6f82825465dde0c366e9ab7c647103ae252dd663 /base/threading
parent0c367e658951c198c7c86e9ba2f2c4c02889a398 (diff)
downloadchromium_src-8a79a21e1ce62c4dd00919465fad68c966fbebe3.zip
chromium_src-8a79a21e1ce62c4dd00919465fad68c966fbebe3.tar.gz
chromium_src-8a79a21e1ce62c4dd00919465fad68c966fbebe3.tar.bz2
Cleanup at end of TLS test by freeing slot
I noticed that all threads in the unit tests that run after the TLS test call the TLS test destructor as their threads go away. This interaction between tests doesn't seem good... so I added a free call. r=darin Review URL: http://codereview.chromium.org/8507015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/thread_local_storage_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/threading/thread_local_storage_unittest.cc b/base/threading/thread_local_storage_unittest.cc
index 216e650..222e78d 100644
--- a/base/threading/thread_local_storage_unittest.cc
+++ b/base/threading/thread_local_storage_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -95,6 +95,7 @@ TEST(ThreadLocalStorageTest, TLSDestructors) {
// Verify that the destructor was called and that we reset.
EXPECT_EQ(values[index], kInitialTlsValue);
}
+ tls_slot.Free(); // Stop doing callbacks to cleanup threads.
}
} // namespace base