[Portland] [Bug 7037] New: Tests should not use hard-coded /tmp paths

bugzilla-daemon at annarchy.freedesktop.org bugzilla-daemon at annarchy.freedesktop.org
Thu May 25 12:12:18 PDT 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=7037          
     
           Summary: Tests should not use hard-coded /tmp paths
           Product: Portland
           Version: unspecified
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: xdg-utils
        AssignedTo: portland at lists.freedesktop.org
        ReportedBy: dmacks at netspace.org
OtherBugsDependingO 7011
             nThis:


xdg-utils/tests/t.xdg-copy and t.xdg-desktop use files with hard-coded names in
/tmp. That's not very polite...means users can interfere with each others'
tests. At an extreme, it looks like a dangerous race condition...what happens if
one is running the tests as root on a slow system, and someone else manages to
symlink the $dest to /etc/passwd? Better to use 'tempfile -d' to create a
private arena for the tests, or else to use to use the local tests/ directory
(or a subdirectory).          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Portland mailing list