summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2008-04-14 18:04:37 (GMT)
committerKevin B Kenny <kennykb@acm.org>2008-04-14 18:04:37 (GMT)
commit12f1b80fe680eae408befaf133b9d9d0025878e4 (patch)
treef46e2ce407e4800c6d4eb2094c27563e988c6c91
parent278b31b91cc7b0d34299f71e36e0f49a840160ef (diff)
downloadtcl-12f1b80fe680eae408befaf133b9d9d0025878e4.zip
tcl-12f1b80fe680eae408befaf133b9d9d0025878e4.tar.gz
tcl-12f1b80fe680eae408befaf133b9d9d0025878e4.tar.bz2
* tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):
Added comments to the test that it can fail on a heavily loaded system.
-rw-r--r--ChangeLog4
-rw-r--r--tests/clock.test10
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bc32f3f..fd73a5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,8 +2,10 @@
* unix/tclUnixTime.c (NativeGetTime): Removed obsolete use of
'struct timezone' in the call to 'gettimeofday'. [Bug 1942197].
+ * tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):
+ Added comments to the test that it can fail on a heavily loaded
+ system.
-
2008-04-11 Don Porter <dgp@users.sourceforge.net>
* generic/tcl.h: Bump version number to 8.5.3b1 to distinguish
diff --git a/tests/clock.test b/tests/clock.test
index c36f5fe..e3b3f85 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: clock.test,v 1.83 2008/02/27 02:08:27 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.83.2.1 2008/04/14 18:04:40 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -35464,6 +35464,8 @@ test clock-33.4a {clock milliseconds} {
concat {}
} {}
test clock-33.5 {clock clicks tests, millisecond timing test} {
+ # This test can fail on a system that is so heavily loaded that
+ # the test takes >60 ms to run.
set start [clock clicks -milli]
after 10
set end [clock clicks -milli]
@@ -35474,6 +35476,8 @@ test clock-33.5 {clock clicks tests, millisecond timing test} {
"test should have taken 0-60 ms, actually took [expr $end - $start]"}
} {ok}
test clock-33.5a {clock tests, millisecond timing test} {
+ # This test can fail on a system that is so heavily loaded that
+ # the test takes >60 ms to run.
set start [clock milliseconds]
after 10
set end [clock milliseconds]
@@ -35491,12 +35495,16 @@ test clock-33.7 {clock clicks, milli with too much abbreviation} {
} {1 {ambiguous option "-": must be -milliseconds or -microseconds}}
test clock-33.8 {clock clicks test, microsecond timing test} {
+ # This test can fail on a system that is so heavily loaded that
+ # the test takes >60 ms to run.
set start [clock clicks -micro]
after 10
set end [clock clicks -micro]
expr {($end > $start) && (($end - $start) <= 60000)}
} {1}
test clock-33.8a {clock test, microsecond timing test} {
+ # This test can fail on a system that is so heavily loaded that
+ # the test takes >60 ms to run.
set start [clock microseconds]
after 10
set end [clock microseconds]