Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #12173: macports-pextlib-tests.patch

File macports-pextlib-tests.patch, 1.5 KB (added by afb@…, 17 months ago)

macports-pextlib-tests.patch

  • src/pextlib1.0/tests/fs-traverse.tcl

     
    199199} 
    200200 
    201201proc setup_trees {root} { 
    202     global trees 
     202    global trees tcl_platform 
    203203     
    204204    array set trees {} 
    205205     
     
    235235        $root/a/c/a     {link ../d} 
    236236    " 
    237237     
     238    if {[string equal $tcl_platform(os) "Darwin"]} { 
     239 
    238240    set trees(sub2) " 
    239241        $root/a/c/a/     {link ../d} 
    240242        $root/a/c/a//a   file 
     
    242244        $root/a/c/a//c   directory 
    243245        $root/a/c/a//d   file 
    244246    " 
     247 
     248    } else { 
     249    # see http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/fts.c#rev1.5 
    245250     
     251    set trees(sub2) " 
     252        $root/a/c/a/     {link ../d} 
     253        $root/a/c/a/a    file 
     254        $root/a/c/a/b    {link ../../b/a} 
     255        $root/a/c/a/c    directory 
     256        $root/a/c/a/d    file 
     257    " 
     258 
     259    } 
     260     
    246261    set trees(2) " 
    247262        $root/a/a       file 
    248263        $root/a/b       file 
  • src/pextlib1.0/tests/checksums.tcl

     
    99        set testfile "/tmp/macports-pextlib-testchecksums" 
    1010        file delete -force $testfile 
    1111 
     12        encoding system utf-8 
     13 
    1214        # create a dummy file. 
    1315        set chan [open $testfile w] 
    1416        puts $chan "Article premier"