Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tribal-tec committed Apr 14, 2014
1 parent 66de9aa commit f666877
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/sequel/reliabilityOff.cpp
Expand Up @@ -25,6 +25,9 @@
SetEnvironmentVariable( name, value )
#endif

const uint32_t sleepTime = 2000; // ms
const uint32_t overheadTime = 400; // ms; time to init, exit, process, ...

class Renderer : public seq::Renderer
{
public:
Expand All @@ -34,7 +37,7 @@ class Renderer : public seq::Renderer
protected:
virtual void draw( co::Object* )
{
lunchbox::sleep( 20000 );
lunchbox::sleep( sleepTime );
getApplication().stopRunning();
}
};
Expand Down Expand Up @@ -66,6 +69,6 @@ int main( const int argc, char** argv )
TEST( app->run( 0 ));
TEST( app->exit( ));

TEST( clock.getTime64() > 22000 );
TEST( clock.getTime64() > sleepTime + overheadTime );
return EXIT_SUCCESS;
}

0 comments on commit f666877

Please sign in to comment.