Menu

#2971 safe.test failures due to changed Tcl safe command set

obsolete: 8.6b2
closed-fixed
5
2012-05-31
2012-05-31
Don Porter
No

==== safe-1.2 Safe Tk loading into an interpreter FAILED
==== Contents of test case:

safe::interpCreate a
safe::loadTk a
lsort [interp hidden a]

---- Result was:
bell cd clipboard encoding exec exit fconfigure glob grab load menu open pwd selection send socket source tcl:file:atime tcl:file:attributes tcl:file:copy tcl:file:delete tcl:file:dirname tcl:file:executable tcl:file:exists tcl:file:extension tcl:file:isdirectory tcl:file:isfile tcl:file:link tcl:file:lstat tcl:file:mkdir tcl:file:mtime tcl:file:nativename tcl:file:normalize tcl:file:owned tcl:file:readable tcl:file:readlink tcl:file:rename tcl:file:rootname tcl:file:size tcl:file:stat tcl:file:tail tcl:file:tempfile tcl:file:type tcl:file:volumes tcl:file:writable toplevel unload wm
---- Result should have been (exact matching):
bell cd clipboard encoding exec exit fconfigure file glob grab load menu open pwd selection send socket source tcl:file:atime tcl:file:attributes tcl:file:copy tcl:file:delete tcl:file:dirname tcl:file:executable tcl:file:exists tcl:file:extension tcl:file:isdirectory tcl:file:isfile tcl:file:link tcl:file:lstat tcl:file:mkdir tcl:file:mtime tcl:file:nativename tcl:file:normalize tcl:file:owned tcl:file:readable tcl:file:readlink tcl:file:rename tcl:file:rootname tcl:file:size tcl:file:stat tcl:file:tail tcl:file:tempfile tcl:file:type tcl:file:volumes tcl:file:writable toplevel unload wm
==== safe-1.2 FAILED

==== safe-1.3 Safe Tk loading into an interpreter FAILED
==== Contents of test case:

safe::interpCreate a
safe::loadTk a
lsort [interp aliases a]

---- Result was:
::tcl::file::atime ::tcl::file::attributes ::tcl::file::copy ::tcl::file::delete ::tcl::file::dirname ::tcl::file::executable ::tcl::file::exists ::tcl::file::extension ::tcl::file::isdirectory ::tcl::file::isfile ::tcl::file::link ::tcl::file::lstat ::tcl::file::mkdir ::tcl::file::mtime ::tcl::file::nativename ::tcl::file::normalize ::tcl::file::owned ::tcl::file::readable ::tcl::file::readlink ::tcl::file::rename ::tcl::file::rootname ::tcl::file::size ::tcl::file::stat ::tcl::file::tail ::tcl::file::tempfile ::tcl::file::type ::tcl::file::volumes ::tcl::file::writable ::tcl::info::nameofexecutable ::ttk::paned clock encoding exit glob load source
---- Result should have been (glob matching):
*encoding*exit*file*load*source*
==== safe-1.3 FAILED

Discussion

  • Donal K. Fellows

    • status: open --> closed-fixed
     
  • Donal K. Fellows

    Just adjusted the lists of commands...