Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-22
22:48 • Closed ticket [451200ffff]: Test ioUtil-3.7 relies on bug plus 9 other chang... artifact: 62479659cf user: dgp
22:42 • Ticket [451200ffff]: 4 changes artifact: 1b7613269d user: msofer
18:26 • Ticket [451200ffff]: 4 changes artifact: 448c16be62 user: vincentdarley
03:12 • Add attachment ioutil.patch to ticket [451200ffff] artifact: 56b9079a13 user: dgp
03:12 • Ticket [451200ffff] Test ioUtil-3.7 relies on bug status still Open with 4 o... artifact: 6fa3818fa8 user: dgp
2001-08-16
16:28 • Ticket [451200ffff]: 4 changes artifact: d65ca46ac6 user: vincentdarley
15:35 • Ticket [451200ffff]: 4 changes artifact: 49815fa2c7 user: dkf
15:35 • Add attachment patch451200_2.txt to ticket [451200ffffffffff|451200ffff... artifact: 3bfb856eb0 user: dkf
2001-08-15
22:42 • Ticket [451200ffff] Test ioUtil-3.7 relies on bug status still Open with 5 o... artifact: 12e85cd8d2 user: dgp
22:21 • Ticket [451200ffff]: 5 changes artifact: 1f01ec2123 user: msofer
22:21 • Add attachment patch451200.txt to ticket [451200ffff] artifact: bf1ddc4cb5 user: msofer
15:14 • New ticket [451200ffff] Test ioUtil-3.7 relies on bug. artifact: ee8416bcfc user: msofer

Test ioUtil-3.7 relies on bug

Closed / Fixed451200ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-08-15 15:14:53
The test ioUtil-3.7 in tests/ioUtil.test has incorrect
bracing, it relies on bug #219184 to function properly.

The script

catch {
      catch [open testOpenFileChannel1%.fil r]
      catch [open testOpenFileChannel2%.fil r]
      catch [open testOpenFileChannel3%.fil r]
 } err5
 set err5

(where none of the channels exist) should return
   couldn't open "testOpenFileChannel1%.fil": no such
file or directory

and not 1: the first error is *not* [catch]ed. Due to
the above mentioned compiler bug, it is ...

I enclose a patch for review by the area maintainer.
msoferplain2001-08-15 22:21:18
File Added - 9568: patch451200.txt
dgpplain2001-08-15 22:42:54
Logged In: YES 
user_id=80530

Hmmm... I don't know why SF failed to auto-assign
this to the maintainer?  Manual assigning now...
dkfplain2001-08-16 15:35:17
File Added - 9592: patch451200_2.txt

Logged In: YES 
user_id=79902

Examination of the preceding tests indicates that the fix
ought to be a little bit more subtle.
vincentdarleyplain2001-08-16 16:28:20
Logged In: YES 
user_id=32170

Perhaps it should have been 'close [open ...]' 
not 'catch'?  I must say I really don't quite get what this 
test is trying to do.
dgpplain2001-08-22 03:12:00
File Added - 9800: ioutil.patch

Logged In: YES 
user_id=80530

Here's a patch that corrects the reported problem
and also improves the consistency of logic in the
ioUtil-3.X sequence of tests.

It does not correct the poor design of the test
sequence itself, with it's unmanaged interdependencies.
That will require a more substantial rewrite.
vincentdarleyplain2001-08-22 18:26:49
Logged In: YES 
user_id=32170

Looks better to me.  Feel free to apply.
msoferplain2001-08-22 22:42:51
Logged In: YES 
user_id=148712

The [catch] bug is fixed, the test now fails on the HEAD.
dgpplain2001-08-22 22:48:10
Logged In: YES 
user_id=80530

ioutil.patch applied to HEAD.
Log in (anonymous is fine) to add a comment.

Attachments: