X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fuserprog%2Fexec-bound.c;fp=src%2Ftests%2Fuserprog%2Fexec-bound.c;h=07a0366a6f5be593ce6589865485ef515ff388c0;hb=16c7d34d02045bc7e6165a13c549a7968e074d4b;hp=0000000000000000000000000000000000000000;hpb=bffccc54acc0560186b8c38bc4a66897de5158eb;p=pintos-anon diff --git a/src/tests/userprog/exec-bound.c b/src/tests/userprog/exec-bound.c new file mode 100644 index 0000000..07a0366 --- /dev/null +++ b/src/tests/userprog/exec-bound.c @@ -0,0 +1,12 @@ +/* Exec a child with an exec string that spans a page boundary. */ + +#include +#include "tests/userprog/boundary.h" +#include "tests/lib.h" +#include "tests/main.h" + +void +test_main (void) +{ + wait (exec (copy_string_across_boundary("child-args arg1 arg2"))); +}