Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4be30a6b25b485c8f84e69457158e40069d6251606994a23478ad4bf28a5a8ab
Ticket: 342a6eda8f3672b1a63a52894a60f215af735c22
New safe.test failures
User & Date: dgp on 2020-07-13 17:54:22
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Looks like some extensive changes to the Safe Base just happened,
    and according to the test suite they do not work.
    
    ==== safe-9.20 check module loading FAILED
    ==== Contents of test case:
    
        set i [safe::interpCreate -accessPath [list $tcl_library]]
    
        # Inspect.
        set confA [safe::interpConfigure $i]
        set modsA [interp eval $i {tcl::tm::path list}]
        set path0 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path1 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path2 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Try to load the packages and run a command from each one.
        set code0 [catch {interp eval $i {package require test0}} msg0]
        set code1 [catch {interp eval $i {package require mod1::test1}} msg1]
        set code2 [catch {interp eval $i {package require mod2::test2}} msg2]
        set out0  [interp eval $i {test0::try0}]
        set out1  [interp eval $i {mod1::test1::try1}]
        set out2  [interp eval $i {mod2::test2::try2}]
    
        list $path0 $path1 $path2 -- $modsA --  $code0 $msg0 $code1 $msg1 $code2 $msg2 -- $confA -- $out0 $out1 $out2
    
    ---- Result was:
    {$p(:1:)} {$p(:3:)} {$p(:2:)} -- {{$p(:1:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ---- Result should have been (glob matching):
    {$p(:1:)} {$p(:2:)} {$p(:3:)} -- {{$p(:1:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2*} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ==== safe-9.20 FAILED
    
    
    
    ==== safe-9.21 interpConfigure change the access path; check module loading; stale data case 1 FAILED
    ==== Contents of test case:
    
        set i [safe::interpCreate -accessPath [list $tcl_library]]
    
        # Inspect.
        set confA [safe::interpConfigure $i]
        set modsA [interp eval $i {tcl::tm::path list}]
        set path0 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path1 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path2 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Add to access path.
        # This injects more tokens, pushing modules to higher token numbers.
        safe::interpConfigure $i -accessPath [list $tcl_library  [file join $TestsDir auto0 auto1]  [file join $TestsDir auto0 auto2]]
    
        # Inspect.
        set confB [safe::interpConfigure $i]
        set modsB [interp eval $i {tcl::tm::path list}]
        set path3 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path4 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path5 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Load pkg data.
        catch {interp eval $i {package require NOEXIST}}
        catch {interp eval $i {package require mod1::NOEXIST}}
        catch {interp eval $i {package require mod2::NOEXIST}}
    
        # Try to load the packages and run a command from each one.
        set code0 [catch {interp eval $i {package require test0}} msg0]
        set code1 [catch {interp eval $i {package require mod1::test1}} msg1]
        set code2 [catch {interp eval $i {package require mod2::test2}} msg2]
        set out0  [interp eval $i {test0::try0}]
        set out1  [interp eval $i {mod1::test1::try1}]
        set out2  [interp eval $i {mod2::test2::try2}]
    
        list $path0 $path1 $path2 -- $modsA -- $path3 $path4 $path5 -- $modsB --  $code0 $msg0 $code1 $msg1 $code2 $msg2 -- $confA -- $confB --  $out0 $out1 $out2
    
    ---- Result was:
    {$p(:1:)} {$p(:3:)} {$p(:2:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:5:)} {$p(:4:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ---- Result should have been (glob matching):
    {$p(:1:)} {$p(:2:)} {$p(:3:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:4:)} {$p(:5:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ==== safe-9.21 FAILED
    
    
    
    ==== safe-9.22 interpConfigure change the access path; check module loading; stale data case 0 FAILED
    ==== Contents of test case:
    
        set i [safe::interpCreate -accessPath [list $tcl_library]]
    
        # Inspect.
        set confA [safe::interpConfigure $i]
        set modsA [interp eval $i {tcl::tm::path list}]
        set path0 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path1 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path2 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Add to access path.
        # This injects more tokens, pushing modules to higher token numbers.
        safe::interpConfigure $i -accessPath [list $tcl_library  [file join $TestsDir auto0 auto1]  [file join $TestsDir auto0 auto2]]
    
        # Inspect.
        set confB [safe::interpConfigure $i]
        set modsB [interp eval $i {tcl::tm::path list}]
        set path3 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path4 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path5 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Try to load the packages and run a command from each one.
        set code0 [catch {interp eval $i {package require test0}} msg0]
        set code1 [catch {interp eval $i {package require mod1::test1}} msg1]
        set code2 [catch {interp eval $i {package require mod2::test2}} msg2]
        set out0  [interp eval $i {test0::try0}]
        set out1  [interp eval $i {mod1::test1::try1}]
        set out2  [interp eval $i {mod2::test2::try2}]
    
        list $path0 $path1 $path2 -- $modsA -- $path3 $path4 $path5 -- $modsB --  $code0 $msg0 $code1 $msg1 $code2 $msg2 -- $confA -- $confB --  $out0 $out1 $out2
    
    ---- Result was:
    {$p(:1:)} {$p(:3:)} {$p(:2:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:5:)} {$p(:4:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ---- Result should have been (glob matching):
    {$p(:1:)} {$p(:2:)} {$p(:3:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:4:)} {$p(:5:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ==== safe-9.22 FAILED
    
    
    
    ==== safe-9.23 interpConfigure change the access path; check module loading; stale data case 3 FAILED
    ==== Contents of test case:
    
        set i [safe::interpCreate -accessPath [list $tcl_library]]
    
        # Inspect.
        set confA [safe::interpConfigure $i]
        set modsA [interp eval $i {tcl::tm::path list}]
        set path0 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path1 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path2 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Force the interpreter to acquire pkg data which will soon become stale.
        catch {interp eval $i {package require NOEXIST}}
        catch {interp eval $i {package require mod1::NOEXIST}}
        catch {interp eval $i {package require mod2::NOEXIST}}
    
        # Add to access path.
        # This injects more tokens, pushing modules to higher token numbers.
        safe::interpConfigure $i -accessPath [list $tcl_library  [file join $TestsDir auto0 auto1]  [file join $TestsDir auto0 auto2]]
    
        # Inspect.
        set confB [safe::interpConfigure $i]
        set modsB [interp eval $i {tcl::tm::path list}]
        set path3 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path4 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path5 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Refresh stale pkg data.
        catch {interp eval $i {package require NOEXIST}}
        catch {interp eval $i {package require mod1::NOEXIST}}
        catch {interp eval $i {package require mod2::NOEXIST}}
    
        # Try to load the packages and run a command from each one.
        set code0 [catch {interp eval $i {package require test0}} msg0]
        set code1 [catch {interp eval $i {package require mod1::test1}} msg1]
        set code2 [catch {interp eval $i {package require mod2::test2}} msg2]
        set out0  [interp eval $i {test0::try0}]
        set out1  [interp eval $i {mod1::test1::try1}]
        set out2  [interp eval $i {mod2::test2::try2}]
    
        list $path0 $path1 $path2 -- $modsA -- $path3 $path4 $path5 -- $modsB --  $code0 $msg0 $code1 $msg1 $code2 $msg2 -- $confA -- $confB --  $out0 $out1 $out2
    
    
    ---- Result was:
    {$p(:1:)} {$p(:3:)} {$p(:2:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:5:)} {$p(:4:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ---- Result should have been (glob matching):
    {$p(:1:)} {$p(:2:)} {$p(:3:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:4:)} {$p(:5:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ==== safe-9.23 FAILED
    
    
    
    ==== safe-9.24 interpConfigure change the access path; check module loading; stale data case 2 (worst case) FAILED
    ==== Contents of test case:
    
        set i [safe::interpCreate -accessPath [list $tcl_library]]
    
        # Inspect.
        set confA [safe::interpConfigure $i]
        set modsA [interp eval $i {tcl::tm::path list}]
        set path0 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path1 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path2 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Force the interpreter to acquire pkg data which will soon become stale.
        catch {interp eval $i {package require NOEXIST}}
        catch {interp eval $i {package require mod1::NOEXIST}}
        catch {interp eval $i {package require mod2::NOEXIST}}
    
        # Add to access path.
        # This injects more tokens, pushing modules to higher token numbers.
        safe::interpConfigure $i -accessPath [list $tcl_library  [file join $TestsDir auto0 auto1]  [file join $TestsDir auto0 auto2]]
    
        # Inspect.
        set confB [safe::interpConfigure $i]
        set modsB [interp eval $i {tcl::tm::path list}]
        set path3 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules]]
        set path4 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod1]]
        set path5 [::safe::interpFindInAccessPath $i [file join $TestsDir auto0 modules mod2]]
    
        # Try to load the packages and run a command from each one.
        set code0 [catch {interp eval $i {package require test0}} msg0]
        set code1 [catch {interp eval $i {package require mod1::test1}} msg1]
        set code2 [catch {interp eval $i {package require mod2::test2}} msg2]
        set out0  [interp eval $i {test0::try0}]
        set out1  [interp eval $i {mod1::test1::try1}]
        set out2  [interp eval $i {mod2::test2::try2}]
    
        list $path0 $path1 $path2 -- $modsA -- $path3 $path4 $path5 -- $modsB --  $code0 $msg0 $code1 $msg1 $code2 $msg2 -- $confA -- $confB --  $out0 $out1 $out2
    
    ---- Result was:
    {$p(:1:)} {$p(:3:)} {$p(:2:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:5:)} {$p(:4:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ---- Result should have been (glob matching):
    {$p(:1:)} {$p(:2:)} {$p(:3:)} -- {{$p(:1:)}} -- {$p(:3:)} {$p(:4:)} {$p(:5:)} -- {{$p(:3:)}} -- 0 0.5 0 1.0 0 2.0 -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- {-accessPath {/Users/dgp/fossil/tcl8.6/library /Users/dgp/fossil/tcl8.6/tests/auto0/auto1 /Users/dgp/fossil/tcl8.6/tests/auto0/auto2 /Users/dgp/fossil/tcl8.6/tests/auto0/modules /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod1 /Users/dgp/fossil/tcl8.6/tests/auto0/modules/mod2} -statics 1 -nested 0 -deleteHook {}} -- res0 res1 res2
    ==== safe-9.24 FAILED
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "33. Safe Base"
  14. title changed to: "New safe.test failures"
  15. type changed to: "Bug"