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

Unified Diff: tests/minsfi/sandbox_invoke_args.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/nacl.scons ('k') | tests/minsfi/test_initializer.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/minsfi/sandbox_invoke_args.c
diff --git a/tests/includability/use_irt.c b/tests/minsfi/sandbox_invoke_args.c
similarity index 55%
copy from tests/includability/use_irt.c
copy to tests/minsfi/sandbox_invoke_args.c
index 1deb6de1eafe64cac015d65658970480d294312f..1e3b000c7ad468a42a86067cbcae0c04a0cd3445 100644
--- a/tests/includability/use_irt.c
+++ b/tests/minsfi/sandbox_invoke_args.c
@@ -4,10 +4,11 @@
* found in the LICENSE file.
*/
-/* Just test that these headers can be #included. */
-#include <irt.h>
-#include <irt_dev.h>
+#include <stdlib.h>
-int main(void) {
- return 0;
+int main(int argc, char **argv) {
+ int i, sum = 0;
+ for (i = 0; i < argc; ++i)
+ sum += strtol(argv[i], 0, 0);
+ return sum;
}
« no previous file with comments | « tests/minsfi/nacl.scons ('k') | tests/minsfi/test_initializer.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698