X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fuserprog%2Fchild-bad.c;h=77d7a69d25013ffdd51aaa3290bfd228c9cb74af;hb=a03618133f7df0954802a470a4bee7674f7aed45;hp=185617c2dfe45e6060fe0594aa3943875d1654a5;hpb=575dc45e34db19ee7808c116e93485b37e0df716;p=pintos-anon diff --git a/src/tests/userprog/child-bad.c b/src/tests/userprog/child-bad.c index 185617c..77d7a69 100644 --- a/src/tests/userprog/child-bad.c +++ b/src/tests/userprog/child-bad.c @@ -1,3 +1,8 @@ +/* Child process run by wait-killed test. + Sets the stack pointer (%esp) to an invalid value and invokes + a system call, which should then terminate the process with a + -1 exit code. */ + #include "tests/lib.h" #include "tests/main.h"