
TESTING "Filedescriptor management" ./test-filedescriptors

echo testdata > ,tmp_testfile

TEST "acquire existing file" acquire_existing <<END
return: 0
END

TEST "acquire existing file twice" acquire_existing_again <<END
return: 0
END

rm ,tmp_testfile

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

TEST "acquire file, creating it" acquire_create <<END
return: 0
END

rm ,tmp_testfile

TEST "acquire file, creating it, nested dir" acquire_create_dir <<END
return: 0
END

rm ,tmp_testdir -r
