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

Unified Diff: base/process_util_unittest.cc

Issue 431034: linux: fix a warning in the process_util unittest... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_unittest.cc
===================================================================
--- base/process_util_unittest.cc (revision 32958)
+++ base/process_util_unittest.cc (working copy)
@@ -415,10 +415,10 @@
}
TEST_F(OutOfMemoryTest, Posix_memalign) {
- // The (void) is to prevent a gcc warning about unused return values.
- // We don't actually care about the return value, since we're
- // asserting death.
- ASSERT_DEATH((void) posix_memalign(&value_, 8, test_size_), "");
+ // Grab the return value of posix_memalign to silence a compiler warning
+ // about unused return values. We don't actually care about the return
+ // value, since we're asserting death.
+ ASSERT_DEATH(EXPECT_EQ(ENOMEM, posix_memalign(&value_, 8, test_size_)), "");
willchan no longer on Chromium 2009/11/24 21:12:43 Don't you need to #include <errno.h> for ENOMEM?
}
extern "C" {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698