OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <sstream> | 8 #include <sstream> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #endif | 32 #endif |
33 | 33 |
34 // Note: On Linux, this test currently only fully works on Debug builds. | 34 // Note: On Linux, this test currently only fully works on Debug builds. |
35 // See comments in the #ifdef soup if you intend to change this. | 35 // See comments in the #ifdef soup if you intend to change this. |
36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
37 // Always fails on Windows: crbug.com/32070 | 37 // Always fails on Windows: crbug.com/32070 |
38 #define MAYBE_OutputToStream DISABLED_OutputToStream | 38 #define MAYBE_OutputToStream DISABLED_OutputToStream |
39 #else | 39 #else |
40 #define MAYBE_OutputToStream OutputToStream | 40 #define MAYBE_OutputToStream OutputToStream |
41 #endif | 41 #endif |
42 #if !defined(__UCLIBC__) | 42 #if !defined(__UCLIBC__) && !defined(_AIX) |
43 TEST_F(StackTraceTest, MAYBE_OutputToStream) { | 43 TEST_F(StackTraceTest, MAYBE_OutputToStream) { |
44 StackTrace trace; | 44 StackTrace trace; |
45 | 45 |
46 // Dump the trace into a string. | 46 // Dump the trace into a string. |
47 std::ostringstream os; | 47 std::ostringstream os; |
48 trace.OutputToStream(&os); | 48 trace.OutputToStream(&os); |
49 std::string backtrace_message = os.str(); | 49 std::string backtrace_message = os.str(); |
50 | 50 |
51 // ToString() should produce the same output. | 51 // ToString() should produce the same output. |
52 EXPECT_EQ(backtrace_message, trace.ToString()); | 52 EXPECT_EQ(backtrace_message, trace.ToString()); |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 #endif | 311 #endif |
312 | 312 |
313 TEST_F(StackTraceTest, MAYBE_StackEnd) { | 313 TEST_F(StackTraceTest, MAYBE_StackEnd) { |
314 EXPECT_NE(0u, GetStackEnd()); | 314 EXPECT_NE(0u, GetStackEnd()); |
315 } | 315 } |
316 | 316 |
317 #endif // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS) | 317 #endif // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS) |
318 | 318 |
319 } // namespace debug | 319 } // namespace debug |
320 } // namespace base | 320 } // namespace base |
OLD | NEW |