|
2003-10-07
| ||
| 21:57 | • Ticket [775394ffff] A few tests in io.test & ioCmd.test fail when + in path<... artifact: 4d31ae0d58 user: dgp | |
| 21:57 | • Ticket [775394ffff]: 1 change artifact: eabbee39f5 user: dgp | |
| 21:57 | • Closed ticket [775394ffff]. artifact: 63365323be user: dgp | |
|
2003-10-03
| ||
| 06:14 | • Ticket [775394ffff]: 2 changes artifact: 86ae89ef90 user: dgp | |
|
2003-07-22
| ||
| 09:00 | • Ticket [775394ffff]: 4 changes artifact: 82aff037fe user: cleverly | |
| 08:59 | • Ticket [775394ffff]: 4 changes artifact: 9acddb6579 user: cleverly | |
| 08:59 | • Add attachment ioCmd.test.patch to ticket [775394ffff] artifact: 2484dbbf36 user: cleverly | |
| 08:58 | • Ticket [775394ffff] A few tests in io.test & ioCmd.test fail when + in path<... artifact: 480dd3d6d0 user: cleverly | |
| 08:58 | • Add attachment io.test.patch to ticket [775394ffff] artifact: 5147ba7d4c user: cleverly | |
| 01:54 | • New ticket [775394ffff] A few tests in io.test & ioCmd.test fail when + in p... artifact: 0c18896c00 user: cleverly | |
A few tests in io.test & ioCmd.test fail when + in path
Closed / Fixed775394ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-07-22 01:54:34
Tests: io-40.6, io-40.11, io-40.12, io-40.14,
iocmd-12.2, iocmd-12.3 and iocmd-12.5 all fail if make
test is run from a director which contains a + (or any
other character which [regexp] and [regsub] treat
specially) because the [regsub] in the test ends up not
matching it's input.
An example:
==== io-40.6 POSIX open access modes: EXCL FAILED
==== Contents of test case:
removeFile test3
set f [open $path(test3) w]
puts $f xyzzy
close $f
set msg [list [catch {open $path(test3) {WRONLY
CREAT EXCL}} msg] $msg]
regsub " already " $msg " " msg
regsub [file join {} $path(test3)] $msg "test3" msg
string tolower $msg
---- Result was:
1 {couldn't open
"/usr/users/mcleverl/testbuild/build01+threads+langinfo+shared+load+symbols/test3":
file exists}
---- Result should have been (exact matching):
1 {couldn't open "test3": file exists}
==== io-40.6 FAILED
cleverlyplain2003-07-22 08:58:36
File Added - 56458: io.test.patch
cleverlyplain2003-07-22 08:59:19
File Added - 56459: ioCmd.test.patch
cleverlyplain2003-07-22 09:00:13
Logged In: YES user_id=22080 I've uploaded two patches which use [string map] to properly escape all the characters that have special meaning to [regsub].
dgp Ticket [775394ffff]: 2 changes
[History diff]2003-10-03 06:14:58
dgp Closed ticket [775394ffff].
[History diff]2003-10-07 21:57:08
dgp Ticket [775394ffff]: 1 change
[History diff]2003-10-07 21:57:10
dgpplain2003-10-07 21:57:12
Logged In: YES user_id=80530 corrected for 8.4.5+ by making good use of the tcltest 2 features.
Log in (anonymous is fine) to add a comment.
Attachments:
- ioCmd.test.patch [download] added by cleverly on 2003-07-22 08:59:19. [details]
- io.test.patch [download] added by cleverly on 2003-07-22 08:58:36. [details]