Check-in [15bb35cd1b]
Overview
Comment:Added comments to Threads test
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:15bb35cd1b336f87cd1a805aa7551b5f5ba7e798
User & Date: rkeene on 2010-10-04 04:53:50
Other Links: manifest | tags
Context
2010-10-04
18:20
Updated to support Solaris method of specifying the whole archive check-in: d68d005c05 user: rkeene tags: trunk
04:53
Added comments to Threads test check-in: 15bb35cd1b user: rkeene tags: trunk
04:52
Added Threads test check-in: 6a3474d699 user: rkeene tags: trunk
Changes

Modified build/test/tests/12-threads.tcl from [9a811a5937] to [df3ccdde39].

     1      1   #! /usr/bin/env tclsh
     2      2   
     3      3   set buildflags [split [lindex $argv 1] -]
     4      4   
            5  +# Determine if Threads was requested (or in 8.6+, unrequested)
     5      6   if {$tcl_version == "8.6"} {
     6      7   	if {[lsearch -exact $buildflags "unthreaded"] == -1} {
     7      8   		set isthreaded 1
     8      9   	} else {
     9     10   		set isthreaded 0
    10     11   	}
    11     12   } else {
    12     13   	if {[lsearch -exact $buildflags "threaded"] == -1} {
    13     14   		set isthreaded 0
    14     15   	} else {
    15     16   		set isthreaded 1
    16     17   	}
    17     18   }
           19  +
           20  +# Static builds don't come with threads.
           21  +if {[lsearch -exact $buildflags "static"] != -1} {
           22  +	set isthreaded 0
           23  +}
    18     24   
    19     25   if {!$isthreaded} {
    20     26   	exit 0
    21     27   }
    22     28   
    23     29   package require Thread
    24     30   
    25     31   exit 0