Removed
Link Here
|
1 |
--- utils/datetime_test.cpp.orig 2016-08-26 10:09:37 UTC |
2 |
+++ utils/datetime_test.cpp |
3 |
@@ -532,11 +532,11 @@ ATF_TEST_CASE_BODY(timestamp__subtractio |
4 |
ATF_REQUIRE_EQ(datetime::delta(100, 0), ts3 - ts1); |
5 |
ATF_REQUIRE_EQ(datetime::delta(99, 999988), ts3 - ts2); |
6 |
|
7 |
- ATF_REQUIRE_THROW_RE( |
8 |
- std::runtime_error, |
9 |
- "Cannot subtract 1291970850123456us from 1291970750123468us " |
10 |
- ".*negative datetime::delta.*not supported", |
11 |
- ts2 - ts3); |
12 |
+ /* |
13 |
+ * NOTE (ngie): behavior change for |
14 |
+ * https://github.com/jmmv/kyua/issues/155 . |
15 |
+ */ |
16 |
+ ATF_REQUIRE_EQ(datetime::delta::from_microseconds(1), ts2 - ts3); |
17 |
} |
18 |
|
19 |
|