Skip to content
Tcl Source Code History Of Ticket 3547593fffffffff
Login

History Of Ticket 3547593fffffffff

Artifacts Associated With Ticket 3547593fffffffff

  1. Ticket change [83aab5f166] (rid 117423) by twylite on 2012-07-23 12:26:48:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi,
      
      I've just done a pull/update to core-8-5-12-rc and built a 32-bit Tcl using MSVC10 on Windows 7 64-bit.  Running the test suite brings up the following failing tests:
      
      ===== fCmd.test
      Test file error: can't read "tmpspace": no such variable
          while executing
      "file join $tmpspace tf1"
          invoked from within
      "test fCmd-6.19 {CopyRenameOneFile: errno == EXDEV} {xdev notRoot} {
          cleanup $tmpspace
          createfile tf1
          file rename tf1 $tmpspace
          glob -n..."
          (file "C:/User/Tcl_BUILD/cmake-2012/tcl/tests/fCmd.test" line 557)
      
      ==== filesystem-1.3 link normalisation FAILED
      ==== filesystem-1.4 link normalisation FAILED
      
      Twylite: (both covered by #3545366 and #3075027)
      
      ==== winFCmd-2.8.1 TclpCopyFile: errno: EACCES FAILED
      ==== Contents of test case:
      
          cleanup
          list [catch {testfile cp nul tf1} msg] $msg
      
      ---- Result was:
      1 EINVAL
      ---- Result should have been (exact matching):
      1 EACCES
      ==== winFCmd-2.8.1 FAILED
      
      Twylite: 2.8.1 is meant for winOlderThan2000.  I'm running on Windows 7.  Platform detection logic appears to be incorrect.
      
      
      ==== winFCmd-6.1 TclpRemoveDirectory: errno: EACCES FAILED
      ==== Contents of test case:
      
          cleanup
          file mkdir td1
          testchmod 000 td1
          catch {
              testfile rmdir td1
              file exists td1
          } r
          catch {
              testchmod 777 td1
              cleanup
          }
          set r
      
      ---- Result was:
      td1 EACCES
      ---- Result should have been (exact matching):
      0
      ==== winFCmd-6.1 FAILED
      
      Twylite: the testchmod 000 appears to make rmdir fail (EACCES).  The subsequent testchmod 777 allows td1 to be removed.  Not sure why the test is expecting 0.
      
      ==== winFCmd-6.9 TclpRemoveDirectory: errno == EACCES FAILED
      ==== Contents of test case:
      
          cleanup
          file mkdir td1
          testchmod 000 td1
          catch {
              testfile rmdir td1
              file exists td1
          } r
          catch {
              testchmod 777 td1
              cleanup
          }
          set r
      
      ---- Result was:
      td1 EACCES
      ---- Result should have been (exact matching):
      0
      ==== winFCmd-6.9 FAILED
      
      Twylite: as for winFCmd-6.1.
      
      ==== winFCmd-6.13 TclpRemoveDirectory: write-protected FAILED
      ==== Contents of test case:
      
          cleanup
          file mkdir td1
          testchmod 000 td1
          catch {
              testfile rmdir td1
              file exists td1
          } r
          catch {
              testchmod 777 td1
              cleanup
          }
          set r
      
      ---- Result was:
      td1 EACCES
      ---- Result should have been (exact matching):
      0
      ==== winFCmd-6.13 FAILED
      
      Twylite: as for winFCmd-6.1.
      
      
      ==== winFCmd-7.15 TraverseWinTree: append \ to target if necessary FAILED
      ==== Contents of test case:
      
          cleanup
          file mkdir td1
          list [catch {testfile cpdir td1 /} msg] $msg
      
      ---- Result was:
      1 {/ EEXIST}
      ---- Result should have been (exact matching):
      1 {/ EACCES}
      ==== winFCmd-7.15 FAILED
      
      Twylite: looks like Windows 7 produces a different error code.
      
      
      ==== winFCmd-9.3 TraversalDelete: DOTREE_PRED FAILED
      ==== Contents of test case:
      
          cleanup
          file mkdir td1/td2
          testchmod 000 td1
          catch {
              testfile rmdir -force td1
              file exists td1
          } r
          catch {
              testchmod 777 td1
              cleanup
          }
          set r
      
      ---- Result was:
      td1 EACCES
      ---- Result should have been (exact matching):
      0
      ==== winFCmd-9.3 FAILED
      
      Twylite: as for winFCmd-6.1.
      
      
    4. foundin initialized to: "obsolete: 8.5.12"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "twylite"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "fcmd test failures on Windows"
    12. type initialized to: "Bug"
  2. Ticket change [ee6799f0fd] (rid 104079) by nijtmans on 2012-07-23 21:23:46:

    1. icomment:
      > Twylite: 2.8.1 is meant for winOlderThan2000. I'm running on Windows 7.
      > Platform detection logic appears to be incorrect.
      Indeed the platform detection logic was way too strict.
      Fixed now in core-8-5-branch.
      
      On my Windows 7, all fCmd.test testcases now pass:
      
      Tests began at Mon Jul 23 16:22:35 CEST 2012
      winFCmd.test
      Tests ended at Mon Jul 23 16:22:35 CEST 2012
      all.tcl:        Total   182     Passed  158     Skipped 24      Failed  0
      Sourced 1 Test Files.
      Number of tests skipped for each constraint:
              9       95
              9       cdrom
              3       emptyTest
              2       exdev
              1       nonPortable
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. status changed to: "Pending"
    5. username: "nijtmans"
  3. Ticket change [03c336d947] (rid 119878) by nijtmans on 2012-07-23 21:23:47:

    1. assignee changed to: "nijtmans"
    2. closedate changed to: "2012-07-23T14:23:47"
    3. closer changed to: "nijtmans"
    4. resolution changed to: "Fixed"
  4. Ticket change [b436ad6d8e] (rid 124986) by twylite on 2012-07-24 16:03:24:

    1. icomment:
      Confirmed that the fix addresses the 'tmpspace' bug and winFCmd-2.8.1.
      
      I'm still getting the same failures on winFCmd-6.1, winFCmd-6.9, winFCmd-6.13, and winFCmd-9.3.  
      
      Further investigation shows that the tests pass if the user has Full Control (F) permission over [pwd], and fail otherwise (giving EACCES, but cleaning up correctly).  Note that users may often have only Change (C) permission rather than Full Control for a particular folder.  
      
      This may be a curiosity of NTFS, or it could be that [file rmdir] needs to attempt to change the permissions first (I don't know what the intended behaviour is).
      
      
      
    2. login: "twylite"
    3. mimetype: "text/plain"
    4. username: "twylite"
  5. Ticket change [fc44b6e14c] (rid 108206) by nijtmans on 2012-07-24 16:34:57:

    1. assignee changed to: "patthoyts"
    2. icomment:
      > I'm still getting the same failures on winFCmd-6.1, winFCmd-6.9,
      > winFCmd-6.13, and winFCmd-9.3. 
      Those are exactly the 4 tests that are marked with
      contraint winVista on trunk, in the following commit.
      
      Patrick, can you shine a light on this? Should
      your fix be backported?
      ===============================================================
      2009-11-10  Pat Thoyts  <[email protected]>
                * tests/winFCmd.test: Cleanup directories that have been set chmod 000. On Windows7 and Vista we really have no access and these were getting left behind.
       A few tests were changed to reflect the intent of the test where
      setting a directory chmod 000 modification. This restriction was ignored on XP but is honoured
       on Vista
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. username: "nijtmans"
  6. Ticket change [01f1ca23c5] (rid 119569) by nijtmans on 2012-07-24 16:35:44:

    1. status changed to: "Open"
  7. Ticket change [7f7b1ac780] (rid 259672) by serhiy.storchaka on 2026-10-21 08:47:09:

    1. icomment:
      All the listed tests were reworked: winFCmd-2.8.1 and 6.9 were removed, 6.1, 6.13 and 9.3 were rewritten with Ashok's testchmod fixes ([24072d92fc], 2023), and 7.15 accepts EEXIST. Fixed in 8.6.14 and 9.0. Closing.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"