git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321387
91177308-0d34-0410-b5e6-
96231b3b80d8
EXPECT_EQ(std::chrono::seconds(1), P->Interval);
P = parseCachePruningPolicy("prune_interval=2m");
ASSERT_TRUE(bool(P));
EXPECT_EQ(std::chrono::seconds(1), P->Interval);
P = parseCachePruningPolicy("prune_interval=2m");
ASSERT_TRUE(bool(P));
- EXPECT_EQ(std::chrono::minutes(2), P->Interval);
+ EXPECT_EQ(std::chrono::minutes(2), *P->Interval);
P = parseCachePruningPolicy("prune_interval=3h");
ASSERT_TRUE(bool(P));
P = parseCachePruningPolicy("prune_interval=3h");
ASSERT_TRUE(bool(P));
- EXPECT_EQ(std::chrono::hours(3), P->Interval);
+ EXPECT_EQ(std::chrono::hours(3), *P->Interval);
}
TEST(CachePruningPolicyParser, Expiration) {
}
TEST(CachePruningPolicyParser, Expiration) {