~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Examples/test-suite/tcl/newobject2_runme.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if [ catch { load ./newobject2[info sharedlibextension] newobject2} err_msg ] {
 
2
        puts stderr "Could not load shared object:\n$err_msg"
 
3
}
 
4
 
 
5
set foo1 [makeFoo]
 
6
if {[fooCount] != 1} {
 
7
    puts stderr "newobject2 test 1 failed"
 
8
    exit 1
 
9
}
 
10
 
 
11
set foo2 [makeFoo]
 
12
if {[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
}