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 508728172d2aa2f7e5f2c9c3c08d0e9a9f13f05a..1455da7a4fe22b52488f0248f8c8fee50b70636d 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 |
@@ -150,9 +150,6 @@ class KernelWrapTest : public ::testing::Test { |
.WillOnce(Return(1)) |
.WillOnce(Return(2)); |
- ASSERT_EQ(0, ki_push_state_for_testing()); |
- ASSERT_EQ(0, ki_init(&mock)); |
- |
// We allow write to be called any number of times, and it forwards to |
// _real_write. This prevents an infinite loop writing output if there is a |
// failure. |
@@ -167,6 +164,9 @@ class KernelWrapTest : public ::testing::Test { |
ON_CALL(mock, munmap(_, _)) |
.WillByDefault(Return(0)); |
EXPECT_CALL(mock, munmap(_, _)).Times(AnyNumber()); |
+ |
+ ASSERT_EQ(0, ki_push_state_for_testing()); |
+ ASSERT_EQ(0, ki_init(&mock)); |
} |
void TearDown() { |