cp.c
v22.2b14/testsuite/single/tests/efuns/cp.c · 253 B
From the archive beta.tar.gz
Download the archive « Back to the archive contents
#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));
}