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

Unified Diff: tests/minsfi/test_initializer.c

Issue 546883003: MinSFI: Passing arguments to the entry function (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 6 years, 3 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 | « tests/minsfi/sandbox_invoke_args.c ('k') | tests/minsfi/test_invoke_args.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/minsfi/test_initializer.c
diff --git a/tests/minsfi/test_initializer.c b/tests/minsfi/test_initializer.c
index 5a37c75fea518937bf6e8f47f244b25b610815d5..3b5b809b37ea285e12c0e58fff97ddd8a47a4bd3 100644
--- a/tests/minsfi/test_initializer.c
+++ b/tests/minsfi/test_initializer.c
@@ -22,6 +22,9 @@
extern uint64_t __sfi_memory_base;
+static int argc = 1;
+static char *argv[] = { "foo" };
+
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) {
« no previous file with comments | « tests/minsfi/sandbox_invoke_args.c ('k') | tests/minsfi/test_invoke_args.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698