about summary refs log tree commit diff stats
path: root/test/os_dep/linux/test_env.c
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-04-05 15:54:52 +0200
committerAjax <commial@gmail.com>2017-04-06 13:47:38 +0200
commitf85d5e8f261db7b4c0fc519df056561ad9e45418 (patch)
tree815d678a09bd7997eeb679251f85c90e78d0d18d /test/os_dep/linux/test_env.c
parent53c7778ca9a8877dc56db55ade07afc8864e0270 (diff)
downloadmiasm-f85d5e8f261db7b4c0fc519df056561ad9e45418.tar.gz
miasm-f85d5e8f261db7b4c0fc519df056561ad9e45418.zip
Add regression test for command-line/env support in Sandbox
Diffstat (limited to '')
-rw-r--r--test/os_dep/linux/test_env.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/os_dep/linux/test_env.c b/test/os_dep/linux/test_env.c
new file mode 100644
index 00000000..7b265561
--- /dev/null
+++ b/test/os_dep/linux/test_env.c
@@ -0,0 +1,10 @@
+#include<stdlib.h>
+#include<stdio.h>
+
+int main(int argc, char** argv, char** envp)
+{
+	printf("argc %d\n", argc);
+	printf("argv[0] %s\n", argv[0]);
+	printf("argv[1] %s\n", argv[1]);
+	printf("envp[0] %s\n", envp[0]);
+}