PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
dir-rm-parent.c File Reference
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for dir-rm-parent.c:

Go to the source code of this file.

Functions

void test_main (void)
 Tries to remove a parent of the current directory. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Tries to remove a parent of the current directory.

tests/main.h

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

Definition at line 9 of file dir-rm-parent.c.

References chdir(), CHECK, mkdir(), and remove().

Here is the call graph for this function: