Skip to content
Tcl Source Code History Of Ticket 703264ffffffffff
Login

History Of Ticket 703264ffffffffff

Artifacts Associated With Ticket 703264ffffffffff

  1. Ticket change [33276f67ed] (rid 106534) by nobody on 2003-03-13 22:24:18:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On my machine, /home is a symlink to /work2 -- a
      possibility that the tests cmdAH-8.43 and cmdAH-8.45
      does not consider.  The results I see reported as
      erroneous are in fact correct:
      
      
      ==== cmdAH-8.43 Tcl_FileObjCmd: dirname FAILED
      ==== Contents of test case:
      
          global env
          set temp $env(HOME)
          set env(HOME) "/home/test"
          testsetplatform unix
          set result [list [catch {file dirname ~} msg] $msg]
          set env(HOME) $temp
          set result
      
      ---- Result was:
      0 /work2
      ---- Result should have been (exact matching):
      0 /home
      ==== cmdAH-8.43 FAILED
      
      
      ==== cmdAH-8.45 Tcl_FileObjCmd: dirname FAILED
      ==== Contents of test case:
      
          global env
          set temp $env(HOME)
          set env(HOME) "/home/test"
          testsetplatform windows
          set result [list [catch {file dirname ~} msg] $msg]
          set env(HOME) $temp
          set result
      
      ---- Result was:
      0 /work2
      ---- Result should have been (exact matching):
      0 /home
      ==== cmdAH-8.45 FAILED
      
      Having reviewed these failures, I am quite confident
      about going ahead and installing the software.
      
      Reported by: Jonathan Leffler <[email protected]>
      <[email protected]>
      
      Test environment is Sun UltraSparc, Solaris 7, GCC
      3.2.1, Tcl 8.4.2, not that any of these are
      particularly important to reproducing this problem. 
      The only key to the reproduction is that /home is a
      symlink to somewhere else.
      
      One day, I'll get my Sourceforge ID reactivated.
      
    4. foundin initialized to: "obsolete: 8.4.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to:
      cmdAH-8.43, 8.45 fail spuriously when /home is symlink
      
    11. type initialized to: "Bug"
  2. Ticket change [9eb5d46ad8] (rid 96527) by dkf on 2003-03-14 21:30:10:

    1. assignee changed to: "vincentdarley"
  3. Ticket change [6397cd0a2f] (rid 92602) by vincentdarley on 2003-03-17 22:27:05:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Does replacing the result line of those tests with:
      
      } [list 0 [expr {([file type /home] == "link") ? "/home" : 
      [file readlink /home]}]]
      
      solve this testsuite issue?
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  4. Ticket change [50d49fd71d] (rid 126040) by vincentdarley on 2003-03-17 22:33:58:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Make that:
      
      } [list 0 [expr {([file exists /home] && ([file type /home] 
      == "link")) ? [file readlink /home] : "/home"}]]
      
      works for me.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  5. Ticket change [ccf1ff1bc0] (rid 95797) by jleffler on 2003-03-19 01:39:58:

    1. icomment:
      Logged In: YES 
      user_id=22937
      
      I modified cmdAH.test with the 'make that' version of the
      change, and to my considerable surprise, cmdAH-8.43 still
      failed as before but cmdAH-8.45 now passed.  The only
      difference between these two tests is the testsetplatorm
      (unix in 8.43, windows in 8.45).  I don't understand this
      result.  I did  a double-check to ensure that I had the same
      change in both places, and that was correct.  I also
      reverted to the original test and got the double failure
      again as originally reported.  Frankly, I'm not sure how to
      debug this...
      
      
    2. login: "jleffler"
    3. mimetype: "text/plain"
    4. username: "jleffler"
  6. Ticket change [f470b044d5] (rid 129918) by vincentdarley on 2003-03-19 01:44:38:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      How about reverting to the original test, but 
      replacing '/home' by '/homewontexist' i.e. a name that 
      shouldn't actually exist on anyone's machine?
      
      Seems to be closer in spirit to what the test is actually 
      trying to do.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  7. Ticket change [4cb1cd328b] (rid 126934) by jleffler on 2003-03-19 05:09:40:

    1. icomment:
      Logged In: YES 
      user_id=22937
      
      If the tests are indeed meant to be testing for a
      non-existent directory, then yes, use a more obscure name --
      /home/test doesn't sound very improbable to me.  In such
      cases, I use a long name that makes it quite clear that it
      is not supposed to exist --
      /you/should/not/have/created/this/directory.  That is much
      simpler to analyse -- I'd certainly recommend that if the
      test is really trying to deal with non-existent directories.
       Another, less reliable but probably OK alternative, is to
      use /syzygy/nadir/zenith or something similarly obscure,
      watching for whether you need to obey 8.3 or similar
      filename limitations.
      
      
    2. login: "jleffler"
    3. mimetype: "text/plain"
    4. username: "jleffler"
  8. Ticket change [cbb969f202] (rid 95572) by vincentdarley on 2003-04-11 23:32:26:

    1. closedate changed to: "2003-04-11T16:32:26"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      fixed in cvs head
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"