Skip to content
Tcl Source Code History Of Ticket 883143ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 883143ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 883143ffffffffffffffffffffffffffffffffff

  1. Ticket change [787ee59867] (rid 89971) by dgp on 2004-01-23 17:34:19:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      ==== fCmd-28.12 file link: cd into a link FAILED
      ==== Contents of test case:
      
          cd [temporaryDirectory]
          file delete -force abc.link
          file link abc.link abc.dir
          set orig [pwd]
          cd abc.link
          set dir [pwd]
          cd ..
          set up [pwd]
          cd $orig
          # now '$up' should be either $orig or [file dirname
      abc.dir],
          # depending on whether 'cd' actually moves to the
      destination
          # of a link, or simply treats the link as a directory.
          # (on windows the former, on unix the latter, I
      believe)
          if {([file normalize $up] != [file normalize
      $orig])  && ([file normalize $up] != [file normalize
      [file dirname abc.dir]])} {
              set res "wrong directory with 'cd $link ; cd ..'"
          } else {
              set res "ok"
          }
          cd [workingDirectory]
          set res
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: can't read "link": no such variable
          while executing
      "set res "wrong directory with 'cd $link ; cd ..'""
          invoked from within
      "if {([file normalize $up] != [file normalize $orig]) 
      && ([file normalize $up] != [file normalize [file
      dirname abc.dir]])} {
              set res "wrong director..."
          ("uplevel" body line 15)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: NONE
      ==== fCmd-28.12 FAILED
      
      Note the test tries to read the value
      of a variable "$link" that does not
      exist.
      
      
    4. foundin initialized to: "obsolete: 8.5a0"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "fCmd-28.12: broken test"
    11. type initialized to: "Bug"
  2. Ticket change [45125710a2] (rid 116818) by vincentdarley on 2004-01-24 01:35:04:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Hmm, the test should say something like this:
      
      set res "wrong directory with 'cd abc.link ; cd ..': \
        \"[file normalize $up]\" should be \"[file normalize
      $orig]\" or\
        \"[file normalize [file dirname abc.dir]]\""
      
      for maximal usefulness
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [3a081c8fa9] (rid 112492) by dgp on 2004-01-26 23:09:35:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Now the test runs, but fails:
      
      ==== fCmd-28.12 file link: cd into a link FAILED
      ==== Contents of test case:
      
          cd [temporaryDirectory]
          file delete -force abc.link
          file link abc.link abc.dir
          set orig [pwd]
          cd abc.link
          set dir [pwd]
          cd ..
          set up [pwd]
          cd $orig
          # now '$up' should be either $orig or [file dirname
      abc.dir],
          # depending on whether 'cd' actually moves to the
      destination
          # of a link, or simply treats the link as a directory.
          # (on windows the former, on unix the latter, I believe)
          if {([file normalize $up] != [file normalize $orig])  &&
      ([file normalize $up] != [file normalize [file dirname
      abc.dir]])} {
              set res "wrong directory with 'cd abc.link ; cd ..':
       \"[file normalize $up]\" should be \"[file normalize
      $orig]\" or \"[file normalize [file dirname abc.dir]]\""
          } else {
              set res "ok"
          }
          cd [workingDirectory]
          set res
      
      ---- Result was:
      wrong directory with 'cd abc.link ; cd ..': 
      "/local/src/tcl/solaris/abc.dir" should be
      "/local/src/tcl/solaris" or "/local/src/tcl/solaris"
      ---- Result should have been (exact matching):
      ok
      ==== fCmd-28.12 FAILED
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [48904fcfd1] (rid 99908) by vincentdarley on 2004-01-27 23:44:10:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Thanks -- it's very strange the 'cd .. ; set up [pwd]'
      doesn't seem to get out of the abc.dir directory.  Could you
      try to debug what is going on -- I don't really understand
      the behaviour you're seeing, and I can't reproduce it (even
      now I can access the compilefarm).
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  5. Ticket change [c3cda3326b] (rid 111727) by vincentdarley on 2004-01-29 18:51:48:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      This is a genuine bug in latest cvs HEAD.  If you insert
      'puts [pwd]' at various points in the test you'll see that
      pwd is "abc.dir" at one point.  That is no good -- it should
      be an absolute path.
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "vincentdarley"
  6. Ticket change [74957ba5fe] (rid 105225) by vincentdarley on 2004-01-29 20:02:53:

    1. closedate changed to: "2004-01-29T13:02:53"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Fixed in cvs.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"