Overview
Comment: | Fix test 2.2. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
a1d3dcc242eac5a287a1e5a133f1cdbd |
User & Date: | awb on 2000-06-02 21:44:59 |
Other Links: | manifest | tags |
Context
2000-06-02
| ||
21:50 | Fix test 2.3. check-in: 7f3358aca3 user: awb tags: trunk | |
21:44 | Fix test 2.2. check-in: a1d3dcc242 user: awb tags: trunk | |
20:45 | *** empty log message *** check-in: 570604a410 user: awb tags: trunk | |
Changes
Modified tests/tlsIo.test from [eb8672a93e] to [6a79fb9151].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | - + | # Commands tested in this file: socket. # # This file contains a collection of tests for one or more of the Tcl # built-in commands. Sourcing this file into Tcl runs the tests and # generates output for errors. No output means no errors were found. # # Copyright (c) 1994-1996 Sun Microsystems, Inc. # Copyright (c) 1998-1999 by Scriptics Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # |
︙ | |||
65 66 67 68 69 70 71 72 73 74 75 76 77 78 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + + + + + + | if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest namespace import -force ::tcltest::* } # Load the tls package package require tls set serverCert [file join $::tcltest::testsDirectory certs server.pem] set clientCert [file join $::tcltest::testsDirectory certs client.pem] set caCert [file join $::tcltest::testsDirectory certs cacert.pem] set serverKey [file join $::tcltest::testsDirectory certs skey.pem] set clientKey [file join $::tcltest::testsDirectory certs ckey.pem] # Some tests require the testthread command set ::tcltest::testConstraints(testthread) \ [expr {[info commands testthread] != {}}] # |
︙ | |||
282 283 284 285 286 287 288 | 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | - + + - + + - + + + - + - | if [info exists port] { incr port } else { set port [expr 2048 + [pid]%1024] } |
︙ | |||
343 344 345 346 347 348 349 | 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | - + | close $f set f [open "|[list $::tcltest::tcltest script]" r] gets $f x if {[catch {tls::socket -myaddr 127.0.0.1 127.0.0.1 2830} sock]} { set x $sock } else { puts $sock hello |
︙ |