[24433] trunk/base/src/pextlib1.0/tests/fs-traverse.tcl

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 24 02:49:17 PDT 2007


Revision: 24433
          http://trac.macosforge.org/projects/macports/changeset/24433
Author:   eridius at macports.org
Date:     2007-04-24 02:49:17 -0700 (Tue, 24 Apr 2007)

Log Message:
-----------
Add yet more tests

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/tests/fs-traverse.tcl

Modified: trunk/base/src/pextlib1.0/tests/fs-traverse.tcl
===================================================================
--- trunk/base/src/pextlib1.0/tests/fs-traverse.tcl	2007-04-24 09:39:35 UTC (rev 24432)
+++ trunk/base/src/pextlib1.0/tests/fs-traverse.tcl	2007-04-24 09:49:17 UTC (rev 24433)
@@ -111,6 +111,16 @@
             error "fs-traverse errored out when setting the variable despite -ignoreErrors"
         }
         
+        # Test using a malformed target list
+        if {![catch {fs-traverse file "$root/a \{$root/b" {}}]} {
+            error "fs-traverse did not error with malformed target list"
+        }
+        
+        # Test again with -ignoreErrors - this is the one case where it should still error
+        if {![catch {fs-traverse -ignoreErrors file "$root/a \{$root/b" {}}]} {
+            error "fs-traverse did not error with malformed target list using -ignoreErrors"
+        }
+        
         # NOTE: This should be the last test performed, as it modifies the file tree
         # Test to make sure deleting files during traversal works as expected
         set output [list]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070424/cf1c4830/attachment.html


More information about the macports-changes mailing list