summaryrefslogtreecommitdiff
path: root/src/mongo/util/SConscript
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2020-02-25 14:15:28 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-02 17:56:45 +0000
commit5a3dd86b2e06a065ba435e4a6fe69300d0ba73a0 (patch)
treec17069779609205bdf693f3325af5da6da2784d7 /src/mongo/util/SConscript
parent6b24ad01b81bc9c455f9679a3d24ce13a7659417 (diff)
downloadmongo-5a3dd86b2e06a065ba435e4a6fe69300d0ba73a0.tar.gz
SERVER-27896 Add support for enforcing single-thread context
Diffstat (limited to 'src/mongo/util/SConscript')
-rw-r--r--src/mongo/util/SConscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/util/SConscript b/src/mongo/util/SConscript
index 50b413173dd..46fa8aec9b1 100644
--- a/src/mongo/util/SConscript
+++ b/src/mongo/util/SConscript
@@ -213,6 +213,16 @@ env.Library(
]
)
+env.CppUnitTest(
+ target='thread_safety_context_test',
+ source=[
+ 'thread_safety_context_test.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/base',
+ ],
+)
+
if env['MONGO_ALLOCATOR'] in ['tcmalloc', 'tcmalloc-experimental']:
tcmspEnv = env.Clone()