11 lines
253 B
C
11 lines
253 B
C
#define TESTFILE "/testfile"
|
|
|
|
void do_tests() {
|
|
rm(TESTFILE);
|
|
ASSERT(file_size(TESTFILE) == -1);
|
|
ASSERT(cp("/single/master.c", TESTFILE));
|
|
ASSERT(file_size(TESTFILE));
|
|
ASSERT(read_file("/single/master.c") == read_file(TESTFILE));
|
|
}
|
|
|