aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/args-none.ck
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/userprog/args-none.ck')
-rw-r--r--src/tests/userprog/args-none.ck13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/userprog/args-none.ck b/src/tests/userprog/args-none.ck
new file mode 100644
index 0000000..146318e
--- /dev/null
+++ b/src/tests/userprog/args-none.ck
@@ -0,0 +1,13 @@
+# -*- perl -*-
+use strict;
+use warnings;
+use tests::tests;
+check_expected ([<<'EOF']);
+(args) begin
+(args) argc = 1
+(args) argv[0] = 'args-none'
+(args) argv[1] = null
+(args) end
+args-none: exit(0)
+EOF
+pass;