summaryrefslogtreecommitdiffstats
path: root/base/debug_util_unittest.cc
diff options
context:
space:
mode:
authorpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-25 23:54:54 +0000
committerpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-25 23:54:54 +0000
commit8d5788267bcd591842932fd8761813c7fac3d987 (patch)
treef585dbb8cc13a244e32cc76ee4a24e89d33bab57 /base/debug_util_unittest.cc
parent93f0c77c33ac138c30a019a6c67de53d23810db0 (diff)
downloadchromium_src-8d5788267bcd591842932fd8761813c7fac3d987.zip
chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.tar.gz
chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.tar.bz2
OpenBSD/FreeBSD ifdefs and GYP changes for base/
Based on original work by Sprewell and Ben Laurie on FreeBSD port Review URL: http://codereview.chromium.org/548129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug_util_unittest.cc')
-rw-r--r--base/debug_util_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/debug_util_unittest.cc b/base/debug_util_unittest.cc
index 7bee4cc..1ab32e7 100644
--- a/base/debug_util_unittest.cc
+++ b/base/debug_util_unittest.cc
@@ -20,12 +20,12 @@ TEST(StackTrace, DISABLED_OutputToStream) {
trace.OutputToStream(&os);
std::string backtrace_message = os.str();
-#if defined(OS_LINUX) && NDEBUG
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && NDEBUG
// Stack traces require an extra data table that bloats our binaries,
// so they're turned off for release builds. We stop the test here,
// at least letting us verify that the calls don't crash.
return;
-#endif // defined(OS_LINUX) && NDEBUG
+#endif // defined(OS_POSIX) && !defined(OS_MACOSX) && NDEBUG
size_t frames_found = 0;
trace.Addresses(&frames_found);