Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#83 link07 fails after 1st envocation when TDIRECTORY is set

System Calls
closed-fixed
Testcases (113)
5
2007-03-23
2006-02-08
Patrick Wyzorski
No

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
failed"

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
already exists.

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.

regards,
~Patrick

Discussion

    • assigned_to: nobody --> mridge
     
  • Subrata Modak
    Subrata Modak
    2007-03-23

    Logged In: YES
    user_id=1737361
    Originator: NO

    Hi Patrick,
    The issue is fixed and cleanup will now be done. Please check the attached output and logs.
    Thanks--
    Subrata
    File Added: logs-output-link07.tar

     
  • Subrata Modak
    Subrata Modak
    2007-03-23

    • status: open --> closed-fixed
     
  • Subrata Modak
    Subrata Modak
    2007-03-23