X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ftests%2Fuserprog%2Fexec-bound.ck;fp=src%2Ftests%2Fuserprog%2Fexec-bound.ck;h=62e588f42961233ae986b4e25f05720dc4133ee8;hb=16c7d34d02045bc7e6165a13c549a7968e074d4b;hp=0000000000000000000000000000000000000000;hpb=bffccc54acc0560186b8c38bc4a66897de5158eb;p=pintos-anon diff --git a/src/tests/userprog/exec-bound.ck b/src/tests/userprog/exec-bound.ck new file mode 100644 index 0000000..62e588f --- /dev/null +++ b/src/tests/userprog/exec-bound.ck @@ -0,0 +1,18 @@ +# -*- perl -*- +use strict; +use warnings; +use tests::tests; +check_expected ([<<'EOF']); +(exec-bound) begin +(args) begin +(args) argc = 3 +(args) argv[0] = 'child-args' +(args) argv[1] = 'arg1' +(args) argv[2] = 'arg2' +(args) argv[3] = null +(args) end +child-args: exit(0) +(exec-bound) end +exec-bound: exit(0) +EOF +pass;