Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5ac090d921c59116742aeae1fd1e10cfa4e08361
Ticket: 3530230fffffffffffffffffffffffffffffffff
multi-level return from source in safe interps
User & Date: dgp on 2012-06-06 00:36:12
Changes

  1. icomment:
    No crash when the test is run alone.  Crash is seen
    when combined with other tests, and only after the test
    is complete.
    
    When the test is run alone, it errors.
    
    ==== safe-8.10 safe source and return FAILED
    ==== Contents of test case:
    
    safe::interpCreate $i
    set token [safe::interpAddToAccessPath $i [file dirname $returnScript]]
    $i eval [list apply {filename {
    source $filename
    error boom
    }} $token/[file tail $returnScript]]
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: can't read "i": no such variable
        while executing
    "safe::interpCreate $i"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: TCL LOOKUP VARNAME i
    ==== safe-8.10 FAILED
    
    
    When run with some other safe-8* tests, it passes.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"