Chromium Code Reviews| 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 bcbf147360bf18f2ca3c1e911a13667ed8d9b21c..65202b66f9eab9c0d5b84dfe91e308782ab28f9f 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 |
| @@ -213,6 +213,13 @@ TEST_F(KernelWrapTest, isatty) { |
| isatty(678); |
| } |
| +/* |
|
binji
2013/08/22 18:09:36
remove?
Sam Clegg
2013/08/22 19:52:25
Done.
|
| +TEST_F(KernelWrapTest, kill) { |
| + EXPECT_CALL(mock, kill(22, 33)).Times(1); |
| + kill(22, 33); |
| +} |
| +*/ |
| + |
| TEST_F(KernelWrapTest, lchown) { |
| uid_t uid = kDummyUid; |
| gid_t gid = kDummyGid; |
| @@ -262,6 +269,19 @@ TEST_F(KernelWrapTest, rmdir) { |
| rmdir("rmdir"); |
| } |
| +static void handler(int) { |
| +} |
| + |
| +TEST_F(KernelWrapTest, sigset) { |
| + EXPECT_CALL(mock, sigset(22, handler)).Times(1); |
| + sigset(22, handler); |
| +} |
| + |
| +TEST_F(KernelWrapTest, signal) { |
| + EXPECT_CALL(mock, sigset(22, handler)).Times(1); |
| + signal(22, handler); |
| +} |
| + |
| TEST_F(KernelWrapTest, stat) { |
| struct stat in_statbuf; |
| MakeDummyStatbuf(&in_statbuf); |