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