summaryrefslogtreecommitdiff
path: root/src/mongo/base/unwind_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/base/unwind_test.cpp')
-rw-r--r--src/mongo/base/unwind_test.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mongo/base/unwind_test.cpp b/src/mongo/base/unwind_test.cpp
index 6afea43e89b..7b2e5129d5f 100644
--- a/src/mongo/base/unwind_test.cpp
+++ b/src/mongo/base/unwind_test.cpp
@@ -135,10 +135,10 @@ void assertTraceContains(const std::string (&names)[size], const std::string sta
auto pos = remainder.find(name);
if (pos == remainder.npos) {
- unittest::log().setIsTruncatable(false) << std::endl
- << "--- BEGIN SAMPLE BACKTRACE ---" << std::endl
- << std::string(stacktrace)
- << "--- END SAMPLE BACKTRACE ---";
+ unittest::log().setIsTruncatable(false)
+ << std::endl
+ << "--- BEGIN SAMPLE BACKTRACE ---" << std::endl
+ << std::string(stacktrace) << "--- END SAMPLE BACKTRACE ---";
FAIL("name '{}' is missing or out of order in sample backtrace"_format(
std::string(name)));
}
@@ -149,7 +149,12 @@ void assertTraceContains(const std::string (&names)[size], const std::string sta
TEST(Unwind, Demangled) {
// Trickery with std::vector<std::function> is to hide from the optimizer.
Context ctx{{
- callNext<0>, callNext<1>, callNext<2>, callNext<3>, callNext<4>, callNext<5>,
+ callNext<0>,
+ callNext<1>,
+ callNext<2>,
+ callNext<3>,
+ callNext<4>,
+ callNext<5>,
}};
ctx.plan.back()(ctx);
// Check that these function names appear in the trace, in order.