From: <no...@so...> - 2002-07-06 18:01:59
|
Feature Requests item #577034, was opened at 2002-07-03 12:08 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=360894&aid=577034&group_id=10894 Category: 33. tcltest Package Group: None Status: Open Resolution: None Priority: 5 Submitted By: Don Porter (dgp) >Assigned to: Don Porter (dgp) Summary: consolidate [make*] and [remove*] Initial Comment: [makeFile] and [makeDirectory] create files and directories. [removeFile] and [removeDirectory] remove them, and if [cleanupTests] discovers they have not been removed, it removes them anyway. This kind of fail-safe cleanup is useful for more than files and directories. The existence of the cleanupTestsHook command testifies that people have a need to add more cleanup operations to [cleanupTests]. Instead new commands [make] and [remove] should be introduced (maybe as subcommands of one command, [resource] ?) that is extensible to control the fail-safe cleanup of any resource needed by a test. ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2002-07-04 11:57 Message: Logged In: YES user_id=75003 Proposal: Have the make command remember full paths, etc. and provide a retrieve command which returns it, use the filename as key. Example using the old functions: Instead of set path(foo) [makeFile {...} foo] and later $path(foo) use makeFile {..} foo and later [pathOf foo] Much nicer than to provide the framework for remembering stuff in each test file. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=360894&aid=577034&group_id=10894 |