Tk Source Code

Changes On Branch bug-aa846938ef
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch bug-aa846938ef Excluding Merge-Ins

This is equivalent to a diff from 991b8f0e to fd66f9ef

2019-04-17
20:02
Fix [aa846938ef]: pkgconfig tests fail on Windows check-in: 35203420 user: fvogel tags: trunk
20:00
merge trunk Closed-Leaf check-in: fd66f9ef user: fvogel tags: bug-aa846938ef
15:10
Merge with (nearly) empty diff. check-in: 5bd3db74 user: culler tags: trunk
2019-04-16
13:22
Source readability run: macosx/* check-in: 991b8f0e user: dkf tags: trunk
12:59
Guard against interpreters being killed out from under our feet when calling Tcl. check-in: 3ca7d19e user: dkf tags: trunk
2019-04-15
17:55
Fix [aa846938ef]: pkgconfig tests fail on Windows check-in: 0e59266a user: fvogel tags: bug-aa846938ef

Changes to tests/pkgconfig.test.

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.

package require tcltest 2.2
namespace import ::tcltest::*
eval tcltest::configure $argv
tcltest::loadTestedCommands

test pkgconfig-1.1 {query keys} {
    lsort [::tk::pkgconfig list]
} [list \
    64bit bindir,install bindir,runtime debug demodir,install demodir,runtime \
    docdir,install docdir,runtime fontsystem includedir,install includedir,runtime \
    libdir,install libdir,runtime mem_debug optimized profiled \
    scriptdir,install scriptdir,runtime threaded \
]
test pkgconfig-1.2 {query keys multiple times} {
    string compare [::tk::pkgconfig list] [::tk::pkgconfig list]
} 0
test pkgconfig-1.3 {query value multiple times} {
    string compare \
	    [::tk::pkgconfig get bindir,install] \
	    [::tk::pkgconfig get bindir,install]
} 0


test pkgconfig-2.0 {error: missing subcommand} {
    catch {::tk::pkgconfig} msg
    set msg
} {wrong # args: should be "::tk::pkgconfig subcommand ?arg?"}







|












|
|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.

package require tcltest 2.2
namespace import ::tcltest::*
eval tcltest::configure $argv
tcltest::loadTestedCommands

test pkgconfig-1.1 {query keys} nonwin {
    lsort [::tk::pkgconfig list]
} [list \
    64bit bindir,install bindir,runtime debug demodir,install demodir,runtime \
    docdir,install docdir,runtime fontsystem includedir,install includedir,runtime \
    libdir,install libdir,runtime mem_debug optimized profiled \
    scriptdir,install scriptdir,runtime threaded \
]
test pkgconfig-1.2 {query keys multiple times} {
    string compare [::tk::pkgconfig list] [::tk::pkgconfig list]
} 0
test pkgconfig-1.3 {query value multiple times} {
    string compare \
	    [::tk::pkgconfig get 64bit] \
	    [::tk::pkgconfig get 64bit]
} 0


test pkgconfig-2.0 {error: missing subcommand} {
    catch {::tk::pkgconfig} msg
    set msg
} {wrong # args: should be "::tk::pkgconfig subcommand ?arg?"}