Chromium Code Reviews| Index: tests/minsfi/test_initializer.c |
| diff --git a/tests/minsfi/test_initializer.c b/tests/minsfi/test_initializer.c |
| index 5a37c75fea518937bf6e8f47f244b25b610815d5..711812a878a8a164073659f8c2bd020c1908e045 100644 |
| --- a/tests/minsfi/test_initializer.c |
| +++ b/tests/minsfi/test_initializer.c |
| @@ -22,6 +22,9 @@ |
| extern uint64_t __sfi_memory_base; |
| +int argc = 1; |
| +char *argv[] = { "foo" }; |
|
jvoung (off chromium)
2014/09/10 17:04:29
could just make these static
dbrazdil
2014/09/10 18:49:47
Done.
|
| + |
| void helper_initialize(void) { |
| ASSERT_EQ(true, MinsfiInitializeSandbox()); |
| ASSERT_NE(NULL, MinsfiGetActiveSandbox()); |
| @@ -30,11 +33,11 @@ void helper_initialize(void) { |
| } |
| void helper_invoke_success(void) { |
| - ASSERT_EQ((int) 0xCAFEBABE, MinsfiInvokeSandbox()); |
| + ASSERT_EQ((int) 0xCAFEBABE, MinsfiInvokeSandbox(argc, argv)); |
| } |
| void helper_invoke_error(void) { |
| - ASSERT_EQ(EXIT_FAILURE, MinsfiInvokeSandbox()); |
| + ASSERT_EQ(EXIT_FAILURE, MinsfiInvokeSandbox(argc, argv)); |
| } |
| void helper_destroy(void) { |