summaryrefslogtreecommitdiff
path: root/dbtests/basictests.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-03-27 01:11:43 -0400
committerEliot Horowitz <eliot@10gen.com>2010-03-27 01:11:43 -0400
commite79f4a9710e42cf99edf6f41c4ccc908abfe2495 (patch)
tree0d207b335d874e25973e17ae53114c7358f488e7 /dbtests/basictests.cpp
parentf6f734e0020ffbdbdd2212c6cb9b7a746c7e1e62 (diff)
downloadmongo-e79f4a9710e42cf99edf6f41c4ccc908abfe2495.tar.gz
debugging for win
Diffstat (limited to 'dbtests/basictests.cpp')
-rw-r--r--dbtests/basictests.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/dbtests/basictests.cpp b/dbtests/basictests.cpp
index dce97dd37f0..116a314273f 100644
--- a/dbtests/basictests.cpp
+++ b/dbtests/basictests.cpp
@@ -208,8 +208,14 @@ namespace BasicTests {
for ( int i=0; i<(total/ms); i++ ){
sleepmillis( ms );
}
- ASSERT( t.millis() >= 1000 );
- ASSERT( t.millis() <= 2500 );
+ {
+ int x = t.millis();
+ if ( x < 1000 || x > 2500 ){
+ cout << "sleeptest x: " << x << endl;
+ ASSERT( x >= 1000 );
+ ASSERT( x <= 2500 );
+ }
+ }
}