LUMIERA.clone/tests/20filedescriptor.tests

39 lines
664 B
Text
Raw Permalink Normal View History

2008-03-31 02:28:25 +02:00
TESTING "Filedescriptor management" ./test-filedescriptors
echo testdata > ,tmp_testfile
TEST "acquire existing file" acquire_existing <<END
return: 0
2008-03-31 02:28:25 +02:00
END
TEST "acquire existing file twice" acquire_existing_again <<END
return: 0
END
2008-03-31 02:28:25 +02:00
rm ,tmp_testfile
2008-03-31 02:28:25 +02:00
echo testdata > ,tmp_testfile1
echo testdata > ,tmp_testfile2
echo testdata > ,tmp_testfile3
TEST "acquire 3 files" acquire_existing_3files <<END
return: 0
END
rm ,tmp_testfile1
rm ,tmp_testfile2
rm ,tmp_testfile3
2008-03-31 02:28:25 +02:00
TEST "acquire file, creating it" acquire_create <<END
return: 0
2008-03-31 02:28:25 +02:00
END
rm ,tmp_testfile
TEST "acquire file, creating it, nested dir" acquire_create_dir <<END
return: 0
2008-03-31 02:28:25 +02:00
END
rm ,tmp_testdir -r