Posted to tcl by oldlaptop at Tue Sep 09 23:19:44 GMT 2025view raw

  1. test foo-1.1 {foo should refuse to frob directories} -setup {
  2. set bogodir [makeDirectory unfrobbable] ;# depends on tcltest's -tmpdir option
  3. } -body {
  4. foo $bogodir
  5. } -cleanup {
  6. removeDirectory unfrobbable
  7. }-resultCodes error -result "can't frob directory: $bogodir" ;# but bogodir is not set until -setup runs!

Add a comment

Please note that this site uses the meta tags nofollow,noindex for all pages that contain comments.
Items are closed for new comments after 1 week