Tcl Source Code

View Ticket
Login
Ticket UUID: 1567956
Title: Building tcl8.5a4 in MinGW: clock test fails (bug in test)
Type: Bug Created on: 2006-09-29 19:05:09
Submitter: nobody Assigned to: kennykb
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2006-10-02 04:07:34
Status: Closed Closed by: kennykb
Resolution: Fixed Closed on: 2006-10-01 21:07:34
Version: None
Description:
Hi everyone,

when building tcl8.5a4 in MinGW/MSys, "make test" fails.

The following describes the environment I'm using:
* Started with: German Win2kSP4 (never touched by MinGW
& Co before)
* Execute MinGW-5.0.3.exe, which installs previously
  downloaded files to "C:\MinGW":
    * binutils-2.15.91-20040904-1.tar.gz
    * gcc-ada-3.4.2-20040916-1.tar.gz
    * gcc-core-3.4.2-20040916-1.tar.gz
    * gcc-g++-3.4.2-20040916-1.tar.gz
    * gcc-g77-3.4.2-20040916-1.tar.gz
    * gcc-java-3.4.2-20040916-1.tar.gz
    * gcc-objc-3.4.2-20040916-1.tar.gz
    * mingw32-make-3.80.0-3.tar.gz
    * mingw-runtime-3.10.tar.gz
    * w32api-3.7.tar.gz
* Execute MSys-1.0.10.exe, which installs itself into
  "C:\msys\1.0". After that "post install":
    * "Do you have MinGW installed?" -> "y"
    * "Where is your MinGW installation?" -> "C:/MinGW"
    * "You do not have C:/MinGW/bin/make.exe.
       Keep it that way."
* Start MSYS

Here are the commands used to build tcl:

$ cd tcl8.5a4/win/
$ ./configure  --prefix=/mingw
$ make
$ make install
$ make test

Here occur some errors (I only quote the lines
describing the errors):
----------------------------------------------------
==== clock-49.2 regression test - missing time zone
file (Bug 1237907)
FAILED
==== Contents of test case:

        list [::tcl::clock::GuessWindowsTimeZone] 
[clock format 0
-locale system -format "%X %Z"]  [clock format -86400
-format "%Y"]

---- Result was:
<-0500>+05:00:00<-0400>+04:00:00,M4.1.0/02:00:00,M10.5.0/02:00:00
{
7:00:00 NACHM. -0500} 1969
---- Result should have been (exact matching):
<-0500>+05:00:00<-0400>+04:00:00,M4.1.0/02:00:00,M10.5.0/02:00:00
{
7:00:00 PM -0500} 1969
==== clock-49.2 FAILED
- - - - - - - - - - - - - - - - - - - - - - - - - -
==== winFile-4.0 Enhanced NTFS user/group permissions:
test no acccess
FAILED
==== Contents of test case:

    # Clean out all well-known ACLs
    catch {cacls $fname /E /R "Everyone"} result
    catch {cacls $fname /E /R $user} result
    catch {cacls $fname /E /R $owner} result
    cacls $fname /E /P $user:N
    test_access $fname 0 0

---- Test setup failed:
getuser: Owner not found in output of dir/q
---- errorInfo(setup): getuser: Owner not found in
output of dir/q
    while executing
"error "getuser: Owner not found in output of dir/q""
    (procedure "getuser" line 17)
    invoked from within
"getuser $fname"
    invoked from within
"set owner [getuser $fname]"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $setup"
---- errorCode(setup): NONE
==== winFile-4.0 FAILED
- - - - - - - - - - - - - - - - - - - - - - - - - -
all.tcl:        Total   22484   Passed  21649   Skipped
833     Failed
2
Sourced 134 Test Files.
Files with failing tests: clock.test winFile.test
---------------------------------------------------- 

I also posted this problem to comp.lang.tcl.

I hope I help you with this!
Sorry for my crappy english!

Wolfgang
Wolfgang0815 .at. gmx .dot. de
User Comments:
patthoyts added on 2006-10-01 16:15:17:
Logged In: YES 
user_id=202636

The clock.test failure is a localization problem. On English
Windows this test passes. Assigning to kbk for review as
clock maintainer.
The winFile.test failure is just trouble execing the dir
command from the msys environment and I've fixed that to use
ls -l instead when run under msys.

kennykb added on 2006-10-02 04:07:34:
Logged In: YES 
user_id=99768

The [clock] bug is fixed in the head.