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

Go to the source code of this file.

Functions

void test_main (void)
 Tries to open the same file twice, which must succeed and must return a different file descriptor in each case. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Tries to open the same file twice, which must succeed and must return a different file descriptor in each case.

tests/main.h

Definition at line 10 of file open-twice.c.

References CHECK, fail(), and open().

Here is the call graph for this function: