1. Set the TDIRECTORY environmental variable.
2. Run link07 system calls testcase
3. Run link07 again
4. Note error; "link07 1 BROK : mkdir(2) of testdir_1
When TDIRECTORY is set the testcases will not clean up
after themselves well -- note logic in tst_tmpdir.c,
tst_tmpdir() function. As such, when link07 attempts
to run the second time it will try to create a 2nd
testdir_1 folder in TDIRECTORY and fail since one
I imagine that any of the testcases that write out to
disk will leave behind debris in TDIRECTORY when it is set.
Opinion: Wouldn't it be better for the tst_tmpdir.c to
create subfolders for individual testcases under
TDIRECTORY (when it is set) and then remove the
subfolders upon clean up.