/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
- # This is the imports runtime testcase.
- if [ catch { load ./imports_b[info sharedlibextension] imports_b} err_msg ] {
- puts stderr "Could not load shared object:\n$err_msg"
- exit 1
- }
- if [ catch { load ./imports_a[info sharedlibextension] imports_a} err_msg ] {
- puts stderr "Could not load shared object:\n$err_msg"
- exit 1
- }
- set x [new_B]
- A_hello $x
- if [ catch { $x nonexistant } ] {
- } else {
- puts stderr "nonexistant method did not throw exception\n"
- exit 1
- }