OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [tests/] [general/] [minterp.tcl] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# minterp.tcl
2
#
3
#       Tests Tix running under multiple interpreters.
4
#
5
# Copyright (c) 1996, Expert Interface Technologies
6
#
7
# See the file "license.terms" for information on usage and redistribution
8
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9
#
10
 
11
proc About {} {
12
    return "Tests Tix running under multiple interpreters."
13
}
14
 
15
proc Test {} {
16
    global tix tcl_version
17
    if ![string comp [info commands interp] ""] {
18
        # Does not support multiple interpreters.
19
        return
20
    }
21
 
22
    if {[lsearch [package names] Itcl] != -1} {
23
        #
24
        # multiple interpreters currently core dumps under itcl2.1
25
        #
26
#       return
27
    }
28
 
29
    TestBlock minterp-1.1 {multiple interpreters} {
30
        for {set x 0} {$x < 5} {incr x} {
31
            global testConfig
32
            interp create a
33
            interp eval a "set dynlib [list $testConfig(dynlib)]"
34
            if {[info exists tix(et)] && $tix(et) == 1} {
35
                interp eval a {
36
                    catch {load "" Tk}
37
                    catch {load "" ITcl}
38
                    catch {load "" ITk}
39
                    catch {load "" Tclsam}
40
                    catch {load "" Tksam}
41
                    catch {load "" Tixsam}
42
                }
43
            } else {
44
                interp eval a {
45
                    load "" Tk
46
                    load $dynlib Tix
47
                }
48
            }
49
            interp eval a {
50
                tixControl .d -label Test
51
                tixComboBox .e -label Test
52
                tixDirList .l
53
                pack .l -expand yes -fill both
54
                pack .d .e -expand yes -fill both
55
                update
56
            }
57
            interp delete a
58
        }
59
    }
60
}

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.