2008-03-31 02:28:25 +02:00
|
|
|
|
|
|
|
|
TESTING "Filedescriptor management" ./test-filedescriptors
|
|
|
|
|
|
|
|
|
|
echo testdata > ,tmp_testfile
|
|
|
|
|
|
|
|
|
|
TEST "acquire existing file" acquire_existing <<END
|
2008-04-01 22:32:35 +02:00
|
|
|
return: 0
|
2008-03-31 02:28:25 +02:00
|
|
|
END
|
|
|
|
|
|
2008-04-01 22:32:35 +02:00
|
|
|
TEST "acquire existing file twice" acquire_existing_again <<END
|
|
|
|
|
return: 0
|
|
|
|
|
END
|
2008-03-31 02:28:25 +02:00
|
|
|
|
2008-04-01 22:32:35 +02:00
|
|
|
rm ,tmp_testfile
|
2008-03-31 02:28:25 +02:00
|
|
|
|
2008-08-12 11:39:35 +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
|
2008-04-01 22:32:35 +02:00
|
|
|
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
|
2008-04-01 22:32:35 +02:00
|
|
|
return: 0
|
2008-03-31 02:28:25 +02:00
|
|
|
END
|
|
|
|
|
|
|
|
|
|
rm ,tmp_testdir -r
|