Commit f4a43486 authored by robert.nagy@gmail.com's avatar robert.nagy@gmail.com

disable GetAppOutputRestrictedSIGPIPE and enable ::vswprintf on OpenBSD


BUG=
TEST=


Review URL: http://codereview.chromium.org/8544003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109806 0039d316-1c4b-4281-b951-d872f2087c98
parent d97759da
...@@ -739,7 +739,7 @@ TEST_F(ProcessUtilTest, GetAppOutputRestricted) { ...@@ -739,7 +739,7 @@ TEST_F(ProcessUtilTest, GetAppOutputRestricted) {
EXPECT_STREQ("", output.c_str()); EXPECT_STREQ("", output.c_str());
} }
#if !(OS_MACOSX) #if !defined(OS_MACOSX) && !defined(OS_OPENBSD)
// TODO(benwells): GetAppOutputRestricted should terminate applications // TODO(benwells): GetAppOutputRestricted should terminate applications
// with SIGPIPE when we have enough output. http://crbug.com/88502 // with SIGPIPE when we have enough output. http://crbug.com/88502
TEST_F(ProcessUtilTest, GetAppOutputRestrictedSIGPIPE) { TEST_F(ProcessUtilTest, GetAppOutputRestrictedSIGPIPE) {
......
...@@ -45,15 +45,8 @@ inline int strncmp16(const char16* s1, const char16* s2, size_t count) { ...@@ -45,15 +45,8 @@ inline int strncmp16(const char16* s1, const char16* s2, size_t count) {
inline int vswprintf(wchar_t* buffer, size_t size, inline int vswprintf(wchar_t* buffer, size_t size,
const wchar_t* format, va_list arguments) { const wchar_t* format, va_list arguments) {
#if defined(OS_OPENBSD)
// TODO(phajdan.jr): There is a patch to add vswprintf to OpenBSD,
// http://marc.info/?l=openbsd-tech&m=130003157729839&w=2
NOTIMPLEMENTED();
return -1;
#else
DCHECK(IsWprintfFormatPortable(format)); DCHECK(IsWprintfFormatPortable(format));
return ::vswprintf(buffer, size, format, arguments); return ::vswprintf(buffer, size, format, arguments);
#endif
} }
} // namespace base } // namespace base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment