mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
unittests: Support Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -11,6 +11,6 @@ class SystemTest : public ::testing::Test {
|
||||
TEST_F(SystemTest, TimeValue) {
|
||||
sys::TimeValue now = sys::TimeValue::now();
|
||||
time_t now_t = time(NULL);
|
||||
EXPECT_TRUE(abs(now_t - now.toEpochTime()) < 2);
|
||||
EXPECT_TRUE(abs(static_cast<time_t>(now_t - now.toEpochTime())) < 2);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user