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:
- ioutil.patch [download] added by dgp on 2001-08-22 03:12:00. [details]
- patch451200_2.txt [download] added by dkf on 2001-08-16 15:35:17. [details]
- patch451200.txt [download] added by msofer on 2001-08-15 22:21:18. [details]