PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/tcl/newobject2_runme.tcl

#
TCL | 27 lines | 13 code | 4 blank | 10 comment | 5 complexity | d2df231cf58e0e3aa86ea54951347930 MD5 | raw file
 1if [ catch { load ./newobject2[info sharedlibextension] newobject2} err_msg ] {
 2	puts stderr "Could not load shared object:\n$err_msg"
 3}
 4
 5set foo1 [makeFoo]
 6if {[fooCount] != 1} {
 7    puts stderr "newobject2 test 1 failed"
 8    exit 1
 9}
10
11set foo2 [makeFoo]
12if {[fooCount] != 2} {
13    puts stderr "newobject2 test 2 failed"
14    exit 1
15}
16
17#$foo1 -delete
18#if {[fooCount] != 1} {
19#    puts stderr "newobject2 test 3 failed"
20#    exit 1
21#}
22
23#$foo2 -delete
24#if {[fooCount] != 0} {
25#    puts stderr "newobject2 test 4 failed"
26#    exit 1
27#}