Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Side by Side Diff: base/debug/stack_trace_unittest.cc

Issue 1489713002: Disable base_unittests:StackTraceTest.OutputToStream on FNL_MUSL (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/debug/stack_trace.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits> 5 #include <limits>
6 #include <sstream> 6 #include <sstream>
7 #include <string> 7 #include <string>
8 8
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 17 matching lines...) Expand all
28 #endif 28 #endif
29 29
30 // Note: On Linux, this test currently only fully works on Debug builds. 30 // Note: On Linux, this test currently only fully works on Debug builds.
31 // See comments in the #ifdef soup if you intend to change this. 31 // See comments in the #ifdef soup if you intend to change this.
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 // Always fails on Windows: crbug.com/32070 33 // Always fails on Windows: crbug.com/32070
34 #define MAYBE_OutputToStream DISABLED_OutputToStream 34 #define MAYBE_OutputToStream DISABLED_OutputToStream
35 #else 35 #else
36 #define MAYBE_OutputToStream OutputToStream 36 #define MAYBE_OutputToStream OutputToStream
37 #endif 37 #endif
38 #if !defined(__UCLIBC__) 38 #if !defined(__UCLIBC__) && !defined(FNL_MUSL)
39 TEST_F(StackTraceTest, MAYBE_OutputToStream) { 39 TEST_F(StackTraceTest, MAYBE_OutputToStream) {
40 StackTrace trace; 40 StackTrace trace;
41 41
42 // Dump the trace into a string. 42 // Dump the trace into a string.
43 std::ostringstream os; 43 std::ostringstream os;
44 trace.OutputToStream(&os); 44 trace.OutputToStream(&os);
45 std::string backtrace_message = os.str(); 45 std::string backtrace_message = os.str();
46 46
47 // ToString() should produce the same output. 47 // ToString() should produce the same output.
48 EXPECT_EQ(backtrace_message, trace.ToString()); 48 EXPECT_EQ(backtrace_message, trace.ToString());
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 EXPECT_EQ("688", itoa_r_wrapper(0x688, 128, 16, 1)); 230 EXPECT_EQ("688", itoa_r_wrapper(0x688, 128, 16, 1));
231 EXPECT_EQ("688", itoa_r_wrapper(0x688, 128, 16, 2)); 231 EXPECT_EQ("688", itoa_r_wrapper(0x688, 128, 16, 2));
232 EXPECT_EQ("688", itoa_r_wrapper(0x688, 128, 16, 3)); 232 EXPECT_EQ("688", itoa_r_wrapper(0x688, 128, 16, 3));
233 EXPECT_EQ("0688", itoa_r_wrapper(0x688, 128, 16, 4)); 233 EXPECT_EQ("0688", itoa_r_wrapper(0x688, 128, 16, 4));
234 EXPECT_EQ("00688", itoa_r_wrapper(0x688, 128, 16, 5)); 234 EXPECT_EQ("00688", itoa_r_wrapper(0x688, 128, 16, 5));
235 } 235 }
236 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) 236 #endif // defined(OS_POSIX) && !defined(OS_ANDROID)
237 237
238 } // namespace debug 238 } // namespace debug
239 } // namespace base 239 } // namespace base
OLDNEW
« no previous file with comments | « base/debug/stack_trace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698