/tags/rel-1-3-25/SWIG/Examples/test-suite/tcl/imports_runme.tcl
TCL | 19 lines | 15 code | 3 blank | 1 comment | 4 complexity | 8de9dd8802ec112a7ed5e1dc987727cc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1 2# This is the imports runtime testcase. 3 4if [ catch { load ./imports_b[info sharedlibextension] imports_b} err_msg ] { 5 puts stderr "Could not load shared object:\n$err_msg" 6 exit 1 7} 8if [ catch { load ./imports_a[info sharedlibextension] imports_a} err_msg ] { 9 puts stderr "Could not load shared object:\n$err_msg" 10exit 1 11} 12 13set x [new_B] 14A_hello $x 15if [ catch { $x nonexistant } ] { 16} else { 17 puts stderr "nonexistant method did not throw exception\n" 18 exit 1 19}