| OLD | NEW |
| 1 # 2010 April 14 | 1 # 2010 April 14 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 proc sql2 {sql} { code2 [list db2 eval $sql] } | 48 proc sql2 {sql} { code2 [list db2 eval $sql] } |
| 49 proc sql3 {sql} { code3 [list db3 eval $sql] } | 49 proc sql3 {sql} { code3 [list db3 eval $sql] } |
| 50 | 50 |
| 51 proc csql1 {sql} { list [catch { sql1 $sql } msg] $msg } | 51 proc csql1 {sql} { list [catch { sql1 $sql } msg] $msg } |
| 52 proc csql2 {sql} { list [catch { sql2 $sql } msg] $msg } | 52 proc csql2 {sql} { list [catch { sql2 $sql } msg] $msg } |
| 53 proc csql3 {sql} { list [catch { sql3 $sql } msg] $msg } | 53 proc csql3 {sql} { list [catch { sql3 $sql } msg] $msg } |
| 54 | 54 |
| 55 uplevel set $varname $tn | 55 uplevel set $varname $tn |
| 56 uplevel $script | 56 uplevel $script |
| 57 | 57 |
| 58 code2 { db2 close } | 58 catch { code2 { db2 close } } |
| 59 code3 { db3 close } | 59 catch { code3 { db3 close } } |
| 60 catch { close $::code2_chan } | 60 catch { close $::code2_chan } |
| 61 catch { close $::code3_chan } | 61 catch { close $::code3_chan } |
| 62 catch { db close } | 62 catch { db close } |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 # Launch another testfixture process to be controlled by this one. A | 66 # Launch another testfixture process to be controlled by this one. A |
| 67 # channel name is returned that may be passed as the first argument to proc | 67 # channel name is returned that may be passed as the first argument to proc |
| 68 # 'testfixture' to execute a command. The child testfixture process is shut | 68 # 'testfixture' to execute a command. The child testfixture process is shut |
| 69 # down by closing the channel. | 69 # down by closing the channel. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } else { | 165 } else { |
| 166 append script $line | 166 append script $line |
| 167 append script "\n" | 167 append script "\n" |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 }] | 170 }] |
| 171 close $fd | 171 close $fd |
| 172 set main_loop_written 1 | 172 set main_loop_written 1 |
| 173 } | 173 } |
| 174 | 174 |
| OLD | NEW |