]> git.donarmstrong.com Git - debhelper.git/commitdiff
Add absolute path test for canonpath.
authorModestas Vainius <modestas@vainius.eu>
Mon, 29 Jun 2009 16:36:28 +0000 (19:36 +0300)
committerModestas Vainius <modestas@vainius.eu>
Mon, 29 Jun 2009 21:53:07 +0000 (00:53 +0300)
Signed-off-by: Modestas Vainius <modestas@vainius.eu>
t/buildsystems/buildsystem_tests

index 0c4fcd5c98671f945bcc5b41e70c247c520bb13b..e54663c84c0779af1e78e13f63c80ad36121a170 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-use Test::More tests => 227;
+use Test::More tests => 228;
 
 use strict;
 use warnings;
@@ -64,6 +64,8 @@ is( $BS_CLASS->canonpath("path/to/../forward/../../somewhere"),
 is( $BS_CLASS->canonpath("path/to/../../../somewhere"),
     "../somewhere","canonpath no3" );
 is( $BS_CLASS->canonpath("./"), ".", "canonpath no4" );
+is( $BS_CLASS->canonpath("/absolute/path/./somewhere/../to/nowhere"),
+    "/absolute/path/to/nowhere", "canonpath no5" );
 is( $BS_CLASS->_rel2rel("path/my/file", "path/my"),
     "file", "_rel2rel no1" );
 is( $BS_CLASS->_rel2rel("path/dir/file", "path/my"),