summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorManuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>2012-01-15 23:28:04 +0000
committerManuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>2012-01-15 23:28:04 +0000
commit64de3f52db3356de0bfb4e2c0ee59e8cafa4f44f (patch)
treee91ab6cc2d15bda3a9ad196010c770e4372abde8 /tests
parent9575a475171f9da4502a42bbe41f4aeb6e26d4af (diff)
downloadaptitude-64de3f52db3356de0bfb4e2c0ee59e8cafa4f44f.tar.gz
Kurt Roeckx <kurt@roeckx.be> for NMU of version 0.6.4-1.2
Diffstat (limited to 'tests')
-rw-r--r--tests/test_misc.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_misc.cc b/tests/test_misc.cc
index ace85183..b462477a 100644
--- a/tests/test_misc.cc
+++ b/tests/test_misc.cc
@@ -119,7 +119,7 @@ private:
struct timeval c = subtract_timevals(a, b);
CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(5), c.tv_sec);
- CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(950), c.tv_usec);
+ CPPUNIT_ASSERT_EQUAL(static_cast<suseconds_t>(950), c.tv_usec);
}
void testSubtractTimevalGreaterInSecondsLessInMilliseconds()
@@ -135,7 +135,7 @@ private:
struct timeval c = subtract_timevals(a, b);
CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(4), c.tv_sec);
- CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(999975), c.tv_usec);
+ CPPUNIT_ASSERT_EQUAL(static_cast<suseconds_t>(999975), c.tv_usec);
}
@@ -152,7 +152,7 @@ private:
struct timeval c = subtract_timevals(a, b);
CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(0), c.tv_sec);
- CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(0), c.tv_usec);
+ CPPUNIT_ASSERT_EQUAL(static_cast<suseconds_t>(0), c.tv_usec);
}
void testSubtractTimevalLessInSecondsGreaterInMilliseconds()
@@ -168,7 +168,7 @@ private:
struct timeval c = subtract_timevals(a, b);
CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(-10), c.tv_sec);
- CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(490), c.tv_usec);
+ CPPUNIT_ASSERT_EQUAL(static_cast<suseconds_t>(490), c.tv_usec);
}
void testSubtractTimevalLessInBothComponents()
@@ -184,7 +184,7 @@ private:
struct timeval c = subtract_timevals(a, b);
CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(-24), c.tv_sec);
- CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(999999), c.tv_usec);
+ CPPUNIT_ASSERT_EQUAL(static_cast<suseconds_t>(999999), c.tv_usec);
}
};