summaryrefslogtreecommitdiff
path: root/src/mongo/stdx
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2020-01-06 15:47:18 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-13 15:21:41 +0000
commit12b63497b80c46f31cb1ece3a23887e50a129504 (patch)
tree449a7f9bea146eadeceb6a00c2a39eda27577fa1 /src/mongo/stdx
parentf31bc89f66632b2d521be2d076dc23f94ff663eb (diff)
downloadmongo-12b63497b80c46f31cb1ece3a23887e50a129504.tar.gz
SERVER-45301 Not all expected aliases are present in the ninja generator output
Diffstat (limited to 'src/mongo/stdx')
-rw-r--r--src/mongo/stdx/SConscript40
1 files changed, 23 insertions, 17 deletions
diff --git a/src/mongo/stdx/SConscript b/src/mongo/stdx/SConscript
index a93289ff543..02af02ec6f3 100644
--- a/src/mongo/stdx/SConscript
+++ b/src/mongo/stdx/SConscript
@@ -35,17 +35,19 @@ env.CppUnitTest(
],
)
-# Not a CppUnitTest because it needs low-level control of thread creation and signals,
-# so it shouldn't use unittest_main and typical mongo startup routines.
-env.RegisterUnitTest(env.Program(
+# Specify UNITTEST_HAS_CUSTOM_MAINLINE because it needs low-level control of
+# thread creation and signals, so it shouldn't use unittest_main and typical
+# mongo startup routines.
+env.CppUnitTest(
target='sigaltstack_location_test',
source=[
'sigaltstack_location_test.cpp',
],
LIBDEPS=[
'stdx',
- ]
-)[0])
+ ],
+ UNITTEST_HAS_CUSTOM_MAINLINE=True,
+)
# The tests for `stdx::set_terminate` need to run outside of the mongo unittest harneses.
# The tests require altering the global `set_terminate` handler, which our unittest framework
@@ -56,45 +58,49 @@ env.RegisterUnitTest(env.Program(
# robust testing of this mechanism.
# Needs to be a different test -- It has to have direct control over the `main()` entry point.
-env.RegisterUnitTest(env.Program(
+env.CppUnitTest(
target='set_terminate_dispatch_test',
source=[
'set_terminate_dispatch_test.cpp',
],
LIBDEPS=[
'stdx',
- ]
-)[0])
+ ],
+ UNITTEST_HAS_CUSTOM_MAINLINE=True,
+)
# Needs to be a different test -- It has to have direct control over the `main()` entry point.
-env.RegisterUnitTest(env.Program(
+env.CppUnitTest(
target='set_terminate_from_main_die_in_thread_test',
source=[
'set_terminate_from_main_die_in_thread_test.cpp',
],
LIBDEPS=[
'stdx',
- ]
-)[0])
+ ],
+ UNITTEST_HAS_CUSTOM_MAINLINE=True,
+)
# Needs to be a different test -- It has to have direct control over the `main()` entry point.
-env.RegisterUnitTest(env.Program(
+env.CppUnitTest(
target='set_terminate_from_thread_die_in_main_test',
source=[
'set_terminate_from_thread_die_in_main_test.cpp',
],
LIBDEPS=[
'stdx',
- ]
-)[0])
+ ],
+ UNITTEST_HAS_CUSTOM_MAINLINE=True,
+)
# Needs to be a different test -- It has to have direct control over the `main()` entry point.
-env.RegisterUnitTest(env.Program(
+env.CppUnitTest(
target='set_terminate_from_thread_die_in_thread_test',
source=[
'set_terminate_from_thread_die_in_thread_test.cpp',
],
LIBDEPS=[
'stdx',
- ]
-)[0])
+ ],
+ UNITTEST_HAS_CUSTOM_MAINLINE=True,
+)