Tcl Source Code

View Ticket
Login
Ticket UUID: 947440
Title: OSX working directory fails
Type: Bug Version: obsolete: 8.4.6
Submitter: tauvan Created on: 2004-05-04 03:44:00
Subsystem: 34. tcltest Package Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-05-05 02:51:07
Resolution: Fixed Closed By: dgp
    Closed on: 2004-05-04 19:51:07
Description:
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
source: core-8-4-branch

errors in reference to tcltest.test and pwd
errors occur when running from command line instead of
make -C ....

initial conditions:
~/Desktop/c84bcopy and  ~/desktop/c84bcopy are same 
directory

  note: to run from command line
  must do root install or
  install c84b_libPath_OSX2_OSX4.patch(see bug#934690)

results:
[localhost:~/Desktop/c84bcopy] steven% ./build/tcl/tcltest ./tcl/
tests/all.tcl
no errors
[localhost:~/Desktop/c84bcopy] steven% cd ~/desktop/c84bcopy
[localhost:~/desktop/c84bcopy] steven% ./build/tcl/tcltest ./tcl/
tests/all.tcl

==== tcltest-8.6 temporaryDirectory FAILED
---- Result was:
/Users/steven/Desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy /Users/steven/desktop/c84bcopy
---- Result should have been (exact matching):
/Users/steven/desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy /Users/steven/desktop/c84bcopy
==== tcltest-8.6 FAILED

==== tcltest-8.6a temporaryDirectory - test format 2 FAILED
---- Result was:
/Users/steven/Desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy /Users/steven/desktop/c84bcopy
---- Result should have been (exact matching):
/Users/steven/desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy /Users/steven/desktop/c84bcopy
==== tcltest-8.6a FAILED

==== tcltest-8.13 tcltest a.tcl -testdir normaldirectory FAILED
---- Result was:
-1 1 {}
---- Result should have been (exact matching):
0 1 {}
==== tcltest-8.13 FAILED

==== tcltest-8.14 testsDirectory FAILED
---- Result was:
/Users/steven/Desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy /Users/steven/desktop/c84bcopy
---- Result should have been (exact matching):
/Users/steven/desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy /Users/steven/desktop/c84bcopy
==== tcltest-8.14 FAILED

==== tcltest-8.60 ::workingDirectory FAILED
---- Result was:
/Users/steven/desktop/c84bcopy/normaldirectory /Users/steven/
Desktop/c84bcopy/normaldirectory /Users/steven/desktop/
c84bcopy /Users/steven/desktop/c84bcopy /Users/steven/
desktop/c84bcopy
---- Result should have been (exact matching):
/Users/steven/desktop/c84bcopy/normaldirectory /Users/steven/
desktop/c84bcopy/normaldirectory /Users/steven/desktop/
c84bcopy /Users/steven/desktop/c84bcopy /Users/steven/
desktop/c84bcopy
==== tcltest-8.60 FAILED

plus
==== unixInit-2.10 FAILED

[localhost:~/desktop/c84bcopy] steven% ./build/tcl/tcltest ./tcl/
tests/tcltest.test
same as above
plus
==== tcltest-9.1 -file a*.tcl FAILED
---- Result was:
0
---- Result should have been (exact matching):
1
==== tcltest-9.1 FAILED
[localhost:~/desktop/c84bcopy] steven% cd ~/Desktop/c84bcopy
[localhost:~/Desktop/c84bcopy] steven% ./build/tcl/tcltest ./tcl/
tests/tcltest.test
just tcltest-9.1 FAILED
User Comments: dgp added on 2004-05-05 02:51:07:
Logged In: YES 
user_id=80530

tests corrected for 8.4.7 and 8.5a2

tauvan added on 2004-05-05 01:53:40:
Logged In: YES 
user_id=1011552

  Never mind about favor, I just tried it myself, ..daaah. No problem.
  And while I have your ear, Thanks! I'm that "april fools".
One month later, I've learned a lot, still have a ways to go,
and wish you well.

tauvan added on 2004-05-05 00:44:50:
Logged In: YES 
user_id=1011552

 The patch works fantasticallly. However unixInit-2.10
remains as fail.
  Also, need a favor. I found I couldn't download patch from IE,
so I had to use another computer system(10.3 w/ Safari). Could you
test a simple patch for me, to see if uploading is a problem?
A simple patch can be found at bug#936081.

dgp added on 2004-05-04 23:22:24:

File Added - 86067: 947440.patch

Logged In: YES 
user_id=80530

[temporaryDIrectory] normalizes
the path values it holds (via a
call to [normalizePath]).  
[testsDirectory] does likewise.

However, [makeDirectory] does
not normalize the path it returns.

That difference leads to most
of these failed tests.

tcltest-9.1/2 are rewritten to
handle direct [source]-ing,
though that's really an unsupported
mode of operation.

Please test this patch, to see
how much of the problem it
corrects.

tauvan added on 2004-05-04 22:24:19:
Logged In: YES 
user_id=1011552

  Did some checking, supposedly not until 10.3
is there special case-sensitive handling, but I think one
difference that you line of questioning brings up is
OSX's default encoding is utf8.

tauvan added on 2004-05-04 21:59:04:
Logged In: YES 
user_id=1011552

  Verified, that at the time it runs these tests,
each test's platform is "unix". Didn't check unixInit-2.10.

tauvan added on 2004-05-04 21:40:35:
Logged In: YES 
user_id=1011552

 Normally, it's "unix".

dgp added on 2004-05-04 21:29:40:
Logged In: YES 
user_id=80530

what is the value of
tcl_platform(platform) on
the Mac OSX system?
Is it "macintosh" ?

tauvan added on 2004-05-04 21:00:42:
Logged In: YES 
user_id=1011552

tcltest-9.1 seemed to be the exception.
It looks like it's based on running tcltest.test instead of all.tcl

dgp added on 2004-05-04 20:23:56:
Logged In: YES 
user_id=80530


these are errors mostly due
to variable case in paths
in the filesystem?  

Hmm... looks like comparison
of normalized vs. un-normalized
paths.

Attachments: