Skip to content
Tcl Source Code History Of Ticket 255c116110
Login

History Of Ticket 255c116110

Artifacts Associated With Ticket 255c116110

  1. Ticket change [13a2244c7f] (rid 185176) by bll on 2020-07-23 17:02:21:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      As reported in:
      
       https://groups.google.com/d/topic/comp.lang.tcl/SG8nCmH1JGE/discussion
      
      there are two test failures on FreeBSD.
      I tested with core-8-6-branch and a fully updated FreeBSD 12.1.
      Test results attached.
      
    5. foundin initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "bll"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "bll"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to: "freebsd: test failures"
    15. type initialized to: "Bug"
  2. Add attachment "w.tcl-test" [d37dd16e6a] (rid 185178) by bll on 2020-07-23 17:02:57.

  3. Ticket change [7155671621] (rid 185188) by bll on 2020-07-23 19:20:37:

    1. icomment:
      This is relevant:
      
         https://bugs.python.org/issue15747
      
      Yes, my FreeBSD VM is configured to use ZFS.
      
      -code 1 -level 0 -errorstack {INNER invokeReplace} -errorcode {POSIX ENOTSUP {operation not supported}} -errorinfo {could not set flags for file "foo.test": operation not supported
      
      The test needs to be modified to check for ENOTSUP.
      
    2. login: "bll"
    3. mimetype: "text/plain"
  4. Ticket change [49e9b7377e] (rid 185189) by bll on 2020-07-23 19:52:12:

    1. icomment:
      I think the socket test was just a mis-configuration of ipv6.
      Adding 'fe80::1 freebsd12' to /etc/hosts fixed the socket test.
      
      But after doing that, an http test fails:
      
      ==== http-4.14 http::Event FAILED
      ==== Contents of test case:
      
          set token [http::geturl $badurl/?timeout=10 -timeout 10000 -command \#]
          if {$token eq ""} {
      	error "bogus return from http::geturl"
          }
          http::wait $token
          lindex [http::error $token] 0
      
      ---- Result was:
      
      ---- Result should have been (exact matching):
      connect failed connection refused
      ==== http-4.14 FAILED
      
      
      The other test can modified as below:
      
      test unixFCmd-20.1 {SetReadOnlyAttribute} -match regexp -setup {
          catch {file delete -force -- foo.test}
      } -constraints {unix notRoot readonlyAttr} -body {
          close [open foo.test w]
          catch {file attributes foo.test -readonly 1} err res
          if { [lindex [dict get $res -errorcode] 1] eq "ENOTSUP" } {
            set result ENOTSUP
          } else {
            set result [list [catch {file attributes foo.test -readonly 1} msg] $msg \
      	    [catch {file attribute foo.test -readonly} msg] $msg \
      	    [catch {file delete -force -- foo.test}] \
      	    [catch {file attributes foo.test -readonly 0} msg] $msg \
      	    [catch {file attribute foo.test -readonly} msg] $msg]
          }
          set result
      } -cleanup {
          file delete -force -- foo.test
      } -result "^(ENOTSUP|[list 0 {} 0 1 1 0 {} 0 0])\$"
      
    2. login: "bll"
    3. mimetype: "text/plain"
  5. Ticket change [18659f213f] (rid 226568) by dkf on 2024-05-24 09:19:01:

    1. icomment:
      I'm not really sure that we _want_ to make that test much more specific like that. It might be better to change it to demand that it "fails" but not that it fails in a specific way. (Mind you, with my ISP it "fails" in a bad way: a connection is formed because of some damn proxy they use. I normally exclude the HTTP tests because of that sort of nonsense.)
      
      I suspect that the _other_ bug is best dealt with through adjusting the test constraints. Which is to say: rather than having contorted code, just make the test not run if the `-readonly` attribute gives `ENOTSUP` on read.
      
    2. login: "dkf"
    3. mimetype: "text/x-markdown"
    4. subsystem changed to: "29. http Package"