llvm.org GIT mirror llvm / 0dd5158
Unbreak the build. Combining chrono with Optional is annoying. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321387 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2626 EXPECT_EQ(std::chrono::seconds(1), P->Interval);
2727 P = parseCachePruningPolicy("prune_interval=2m");
2828 ASSERT_TRUE(bool(P));
29 EXPECT_EQ(std::chrono::minutes(2), P->Interval);
29 EXPECT_EQ(std::chrono::minutes(2), *P->Interval);
3030 P = parseCachePruningPolicy("prune_interval=3h");
3131 ASSERT_TRUE(bool(P));
32 EXPECT_EQ(std::chrono::hours(3), P->Interval);
32 EXPECT_EQ(std::chrono::hours(3), *P->Interval);
3333 }
3434
3535 TEST(CachePruningPolicyParser, Expiration) {