sua file cmakelists
This commit is contained in:
@@ -37,7 +37,7 @@ using namespace robot;
|
||||
|
||||
TEST(Duration, sleepWithSimTime)
|
||||
{
|
||||
robot::Time::init();
|
||||
// robot::Time::init();
|
||||
|
||||
Time start = Time::now();
|
||||
start -= Duration(2.0);
|
||||
@@ -52,7 +52,7 @@ TEST(Duration, sleepWithSimTime)
|
||||
|
||||
TEST(Duration, castFromDoubleExceptions)
|
||||
{
|
||||
robot::Time::init();
|
||||
// robot::Time::init();
|
||||
|
||||
Duration d1, d2, d3, d4, d5, d6, d7, d8, d9;
|
||||
// Valid values to cast, must not throw exceptions
|
||||
@@ -76,7 +76,7 @@ TEST(Duration, castFromDoubleExceptions)
|
||||
|
||||
TEST(Duration, castFromInt64Exceptions)
|
||||
{
|
||||
robot::Time::init();
|
||||
// robot::Time::init();
|
||||
|
||||
Duration d1, d2, d3, d4;
|
||||
// Valid values to cast, must not throw exceptions
|
||||
@@ -94,7 +94,7 @@ TEST(Duration, castFromInt64Exceptions)
|
||||
|
||||
TEST(Duration, arithmeticExceptions)
|
||||
{
|
||||
robot::Time::init();
|
||||
// robot::Time::init();
|
||||
|
||||
Duration d1(2147483647, 0);
|
||||
Duration d2(2147483647, 999999999);
|
||||
@@ -114,7 +114,7 @@ TEST(Duration, arithmeticExceptions)
|
||||
|
||||
TEST(Duration, negativeSignExceptions)
|
||||
{
|
||||
robot::Time::init();
|
||||
// robot::Time::init();
|
||||
|
||||
Duration d1(2147483647, 0);
|
||||
Duration d2(2147483647, 999999999);
|
||||
@@ -138,7 +138,7 @@ TEST(Duration, negativeSignExceptions)
|
||||
|
||||
TEST(Duration, rounding)
|
||||
{
|
||||
robot::Time::init();
|
||||
// robot::Time::init();
|
||||
|
||||
Duration d1(49.0000000004);
|
||||
EXPECT_EQ(49, d1.sec);
|
||||
|
||||
@@ -565,10 +565,12 @@ TEST(Duration, sleepWithSignal)
|
||||
#endif
|
||||
|
||||
Time start = Time::now();
|
||||
Duration d(5.0);
|
||||
std::cout << "start: " << start << std::endl;
|
||||
Duration d(10.0);
|
||||
bool rc = d.sleep();
|
||||
// std::cout << "rc: " << rc << std::endl;
|
||||
// std::cout << "start: " << start << std::endl;
|
||||
Time end = Time::now();
|
||||
std::cout << "end: " << end << std::endl;
|
||||
|
||||
ASSERT_GT(end - start, d);
|
||||
ASSERT_TRUE(rc);
|
||||
|
||||
Reference in New Issue
Block a user