Tk Library Source Code

View Ticket
Login
Ticket UUID: 486572
Title: testsuite failure with cvs head version
Type: Bug Version: None
Submitter: lvirden Created on: 2001-11-28 18:27:07
Subsystem: fileutil Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-12-07 04:54:19
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-12-06 21:54:19
Description:
platform: sparc solaris 2.6 sun c compiler tcl 8.4a4
and latest tcllib from cvs head of tue, nov 28, 2001

after building and installing the latest tcl and tcllib
I get the following fileutil errors when running the
tcllib test suite:

Module: fileutil
modules/fileutil/fileutil.test
fileutil 1.2

==== find-2.2 find by pattern FAILED
==== Contents of test case:

    lsort [::fileutil::findByPattern $dir -glob {fil*}]

---- Result was:
/vol/tclsrcsol/tcl84/tcllib/find1/file1
/vol/tclsrcsol/tcl84/tcllib/find1/find2/
file2 /vol/tclsrcsol/tcl84/tcllib/modules/fileinput
/vol/tclsrcsol/tcl84/tcllib/
modules/fileutil
/vol/tclsrcsol/tcl84/tcllib/modules/fileutil/fileutil.n
/vol/tc
lsrcsol/tcl84/tcllib/modules/fileutil/fileutil.tcl
/vol/tclsrcsol/tcl84/tcllib/m
odules/fileutil/fileutil.test
---- Result should have been (exact matching):
/vol/tclsrcsol/tcl84/tcllib/find1/file1
/vol/tclsrcsol/tcl84/tcllib/find1/find2/
file2
==== find-2.2 FAILED

==== find-2.3 find by pattern FAILED
==== Contents of test case:

    lsort [::fileutil::findByPattern $dir -regexp
{.*1$}]

---- Result was:
/vol/tclsrcsol/tcl84/tcllib/examples/oreilly-oscon2001
/vol/tclsrcsol/tcl84/tcll
ib/find1 /vol/tclsrcsol/tcl84/tcllib/find1/file1
/vol/tclsrcsol/tcl84/tcllib/mod
ules/sha1
---- Result should have been (exact matching):
/vol/tclsrcsol/tcl84/tcllib/find1
/vol/tclsrcsol/tcl84/tcllib/find1/file1
==== find-2.3 FAILED
User Comments: andreas_kupries added on 2001-12-07 04:54:19:
Logged In: YES 
user_id=75003

Committed to head.

andreas_kupries added on 2001-12-07 04:53:22:

File Added - 14272: 486572.diff

Logged In: YES 
user_id=75003

Enclosed a fix for the problem.

andreas_kupries added on 2001-12-07 04:42:31:
Logged In: YES 
user_id=75003

Ok, I get the same errors for find when I configure and 
test from the top directory of tcllib. So the tests as 
written are much to dependent on the actual contents of the 
tcllib directory, thus thrown off by (m)any changes, like 
new modules, examples, whatever.

Oh, the touch errors are still there so my belief that this 
is linux dependent is even stronger.

andreas_kupries added on 2001-12-07 04:37:56:
Logged In: YES 
user_id=75003

Hm. In my setup I get errors for 'touch',
but not for 'find'. The touch thing might
be a linux issue.

In which directory did you execute 'configure' and 
then 'make test' ? I usually create a build directory
outside of tcllib and configure and test from there.

Attachments: