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

Go to the source code of this file.

Typedefs

typedef int(*volatile functionptr) (void)
 This program attempts to execute code at address 0, which is not mapped. More...
 

Functions

void test_main (void)
 tests/main.h More...
 

Typedef Documentation

◆ functionptr

typedef int(* volatile functionptr) (void)

This program attempts to execute code at address 0, which is not mapped.

This should terminate the process with a -1 exit code.

Definition at line 7 of file bad-jump.c.

Function Documentation

◆ test_main()

void test_main ( void  )

tests/main.h

tests/main.h

tests/main.h

This must fail, because that directory is non-empty.

tests/main.h

This must fail.

tests/main.h

and an ordinary file in each of them, until we fill up the disk.

Then delete most of them, for two reasons. First, "tar" limits file names to 100 characters (which could be extended to 256 without much trouble). Second, a full disk has no room for the tar archive.

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

References fail(), msg(), and NULL.

Here is the call graph for this function: