0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

only test sleepmicros on linux

This commit is contained in:
Eliot Horowitz 2010-04-27 15:14:32 -04:00
parent b95d9603a0
commit 380fb64c0c

View File

@ -219,7 +219,7 @@ namespace BasicTests {
}
}
#ifdef __linux__
{
int total = 1200;
int micros = 100;
@ -229,15 +229,15 @@ namespace BasicTests {
sleepmicros( micros );
}
{
int x = t.millis();
if ( x < 1000 || x > 2500 ){
cout << "sleeptest x: " << x << endl;
ASSERT( x >= 1000 );
ASSERT( x <= 20000 );
int y = t.millis();
if ( y < 1000 || y > 2500 ){
cout << "sleeptest y: " << y << endl;
ASSERT( y >= 1000 );
ASSERT( y <= 20000 );
}
}
}
#endif
}