Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 588726b2497339ee5cb81c1b781203f4998df6ec
Ticket: 1963074fffffffffffffffffffffffffffffffff
fCmd.test 27.5 and 27.6 failure on SPARC Solaris
User & Date: lvirden on 2008-05-13 13:06:13
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The above two tests fail on SPARC Solaris (and probably other platforms) because the tests make the assumption that any user can change the group of a file.
    
    On Solaris 2.8 (and a variety of older and newer versions as well), the user can only change the group of a file s/he owns, and only change it to a group to which s/he belongs.
    
    The weird thing, to me, is that I would have thought this test should have worked - I mean, I am running it as me, so the file created should have been created in my default group.
    
    However, what I am seeing is this:
    
    fCmd.test
    
    ==== fCmd-27.5 TclFileAttrsCmd - setting one option FAILED
    ==== Contents of test case:
    
        createfile foo.tmp
        set attrs [file attributes foo.tmp]
        file attributes foo.tmp {*}[lrange $attrs 0 1]
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: could not set group for file "foo.tmp": not owner
        while executing
    "file attributes foo.tmp {*}[lrange $attrs 0 1]"
        ("uplevel" body line 4)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: POSIX EPERM {not owner}
    ==== fCmd-27.5 FAILED
    
    ==== fCmd-27.6 TclFileAttrsCmd - setting more than one option FAILED
    ==== Contents of test case:
    
        createfile foo.tmp
        set attrs [file attributes foo.tmp]
        file attributes foo.tmp {*}[lrange $attrs 0 3]
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: could not set group for file "foo.tmp": not owner
        while executing
    "file attributes foo.tmp {*}[lrange $attrs 0 3]"
        ("uplevel" body line 4)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: POSIX EPERM {not owner}
    ==== fCmd-27.6 FAILED
    
    
  4. foundin changed to: "obsolete: 8.6a0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "lvirden"
  10. subsystem changed to: "37. File System"
  11. title changed to: "fCmd.test 27.5 and 27.6 failure on SPARC Solaris"
  12. type changed to: "Bug"