diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-03 12:31:19 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-03 12:31:19 (GMT) |
commit | e2532e668c6fa0acfe8a26c27b75d1d068e862a5 (patch) | |
tree | 1af98744597d706e888e17d56f9a96c61450f14d /tests | |
parent | bfa5a8cd1f13c5913dcfa5264db672616101228a (diff) | |
parent | fd30b7a12eaad501b7b4ffa107c93f58283008b9 (diff) | |
download | tcl-e2532e668c6fa0acfe8a26c27b75d1d068e862a5.zip tcl-e2532e668c6fa0acfe8a26c27b75d1d068e862a5.tar.gz tcl-e2532e668c6fa0acfe8a26c27b75d1d068e862a5.tar.bz2 |
Move cpuid testcase from win-specific to generic tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/platform.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/platform.test b/tests/platform.test index 9d88f98..4f1eb82 100644 --- a/tests/platform.test +++ b/tests/platform.test @@ -14,7 +14,7 @@ if {[lsearch [namespace children] ::tcltest] == -1} { namespace import -force ::tcltest::* } -testConstraint testWinCPUID [llength [info commands testwincpuid]] +testConstraint testCPUID [llength [info commands testcpuid]] test platform-1.1 {TclpSetVariables: tcl_platform} { interp create i @@ -36,12 +36,12 @@ test platform-2.1 {tcl_platform(wordSize) indicates size of native word} { list [expr {$result < 0}] [expr {$result ^ int($result - 1)}] } {1 -1} -# On Windows, test that the CPU ID works +# On Windows/UNIX, test that the CPU ID works -test platform-3.1 {CPU ID on Windows } \ - -constraints testWinCPUID \ +test platform-3.1 {CPU ID on Windows/UNIX} \ + -constraints testCPUID \ -body { - set cpudata [testwincpuid 0] + set cpudata [testcpuid 0] binary format iii \ [lindex $cpudata 1] \ [lindex $cpudata 3] \ |