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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc

Issue 240493003: Support static/dynamic for bionic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix issues. Created 6 years, 8 months 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 | « native_client_sdk/src/resources/Makefile.index.template ('k') | native_client_sdk/src/tools/nacl_gcc.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc b/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
index c043445af65f11991c629cb957b56d1dd5322364..bbfa60047a31cc9bbb6afc3d3891f9b91308bd00 100644
--- a/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
@@ -530,16 +530,17 @@ TEST_F(KernelWrapTest, truncate) {
EXPECT_EQ(0, truncate(kDummyConstChar, kDummyInt3));
}
-#ifndef __BIONIC__
TEST_F(KernelWrapTest, lstat) {
- struct stat buf;
- EXPECT_CALL(mock, lstat(kDummyConstChar, &buf)).WillOnce(Return(-1));
- EXPECT_EQ(-1, lstat(kDummyConstChar, &buf));
-
- EXPECT_CALL(mock, lstat(kDummyConstChar, &buf)).WillOnce(Return(0));
- EXPECT_EQ(0, lstat(kDummyConstChar, &buf));
+ struct stat in_statbuf;
+ MakeDummyStatbuf(&in_statbuf);
+ EXPECT_CALL(mock, lstat(StrEq(kDummyConstChar), _))
+ .WillOnce(DoAll(SetStat(&in_statbuf), Return(0)))
+ .WillOnce(Return(-1));
+ struct stat out_statbuf;
+ EXPECT_EQ(0, lstat(kDummyConstChar, &out_statbuf));
+ EXPECT_THAT(&in_statbuf, IsEqualToStatbuf(&out_statbuf));
+ EXPECT_EQ(-1, lstat(kDummyConstChar, &out_statbuf));
}
-#endif
TEST_F(KernelWrapTest, unlink) {
EXPECT_CALL(mock, unlink(kDummyConstChar)).WillOnce(Return(kDummyInt));
« no previous file with comments | « native_client_sdk/src/resources/Makefile.index.template ('k') | native_client_sdk/src/tools/nacl_gcc.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698