CS318 - Pintos
Pintos source browser for JHU CS318 course
|
char buf1[1234]
Verifies that a deleted file may still be written to and read from.
int write(int fd, const void *buffer, unsigned size)
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
void random_bytes(void *buf_, size_t size)
Writes SIZE random bytes into BUF.
void compare_bytes(const void *read_data_, const void *expected_data_, size_t size, size_t ofs, const char *file_name)
test/lib.h
bool remove(const char *file)
int open(const char *file)
void seek(int fd, unsigned position)
static const char file_name[]
tests/filesys/base/syn-read.h
void test_main(void)
tests/main.h
void msg(const char *format,...)
int read(int fd, void *buffer, unsigned size)
bool create(const char *file, unsigned initial_size)