Skip to content
Tcl Source Code View Ticket
Login

View Ticket

some test failures on Win2K

Closed / Fixed219239ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:04:00
OriginalBugID: 4837 Bug
Version: 8.3
SubmitDate: '2000-04-04'
LastModified: '2000-05-10'
Severity: LOW
Status: Assigned
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 2000
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
David Gravereaux

CVS:
updated 4/3/00 (today)

Comments:
I haven't ran the tests on NT4 or any other Win32 OS to compare
    and see if this is an isolated Win2K thing.

ReproducibleScript:
nmake -f makefile.vc test > failures.txt

ObservedBehavior:
==== exec-2.6 redirecting input from immediate source, with UTF FAILED
==== Contents of test case:

    # If this fails, it may give back:
    # "\uC3\uA9\uC3\uA0\uC3\uBC\uC3\uB1"
    # If it does, this means that the UTF -> external conversion did not 
    # occur before writing out the temp file.
    exec $::tcltest::tcltest cat << "\uE9\uE0\uFC\uF1"

---- Result was:
éàüñ
---- Result should have been:
éàüñ
==== exec-2.6 FAILED

==== winDde-4.2 DDE execute remotely FAILED
==== Contents of test case:

    set a ""
    set child [createChildProcess child]
    dde execute -async TclEval child {set a "foo"}

    dde execute TclEval child {set done 1}

    set a

==== Test generated error:
remote interpreter did not respond
---- Result should have been:

==== winDde-4.2 FAILED

winFCmd.test

==== winFCmd-1.13 TclpRenameFile: errno: EACCES FAILED
==== Contents of test case:

    cleanup
    list [catch {testfile mv nul tf1} msg] $msg

---- Result was:
1 EINVAL
---- Result should have been:
1 EACCES
==== winFCmd-1.13 FAILED


==== winFCmd-1.19 TclpRenameFile: errno == EACCES FAILED
==== Contents of test case:

    cleanup
    list [catch {testfile mv nul tf1} msg] $msg

---- Result was:
1 EINVAL
---- Result should have been:
1 EACCES
==== winFCmd-1.19 FAILED


==== winFCmd-2.8 TclpCopyFile: errno: EACCES FAILED
==== Contents of test case:

    cleanup
    list [catch {testfile cp nul tf1} msg] $msg

---- Result was:
1 EINVAL
---- Result should have been:
1 EACCES
==== winFCmd-2.8 FAILED

DesiredBehavior:
no failures



The first problem was fixed in 8.3.1, but the others need to be
examined on Win2K. 
-- 05/10/2000 hobbs
dkfplain2001-02-07 22:11:57
Most of these a failures in winFCmd.test
nobodyplain2001-08-17 22:49:20
Logged In: NO 

All of these failures occur when TclpRenameFile or 
TclpCopyFile (in tclWinFCmd.c) are called with a first 
argument of a file that doesn't exist (the 'nul' above).  
Hence they all most likely indicate a single root cause of 
the problem.  They all still occur in Tcl 8.4a4.  
Unfortunately I don't have a Win95/98/NT machine on which 
to examine the behaviour and see how the code is supposed 
to behave...
vincentdarleyplain2001-08-29 18:35:17
Logged In: YES 
user_id=32170

I've put a suggested fix for this in the 'fs remove 
obsolete private APIs' patch.  The patch basically consists 
in converting 'EINVAL' errors 'to 'EACCES'.  This means the 
test-suite now passes, but I don't know whether there are 
bad side-effects....
hobbsplain2001-08-30 06:32:37
Logged In: YES 
user_id=72656

I don't think you want to generically convert all EINVAL to 
EACCESS.  I think it would be better to correct the tests.  
Since we are only *simulating* posix behavior in many cases 
on Windows, the only important thing there is that an error 
did occur.
vincentdarleyplain2001-08-30 15:33:32
Logged In: YES 
user_id=32170

Of course an error is the most important thing, and the 
script-level tests all pass either way.  I won't change the 
C behaviour then.  Probably the easiest solution is to 
duplicate those tests, marking them '95' or 'nt' and 
changing the desired result appropriately (there are quite 
a few tests which seem to have adopted this approach).  
I'll leave that to someone who has more than one platform 
they can test this stuff out on.
vincentdarley Closed ticket [219239ffff]. [History diff]2001-09-05 01:07:52
Log in (anonymous is fine) to add a comment.