CS318 - Pintos
Pintos source browser for JHU CS318 course
Functions
child-bad.c File Reference
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for child-bad.c:

Go to the source code of this file.

Functions

void test_main (void)
 Child process run by wait-killed test. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Child process run by wait-killed test.

tests/main.h

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.

Definition at line 10 of file child-bad.c.

References fail().

Here is the call graph for this function: