svn commit: r439018 - in head/devel/kyua: . files
Ngie Cooper
ngie at FreeBSD.org
Fri Apr 21 07:38:32 UTC 2017
Author: ngie (src committer)
Date: Fri Apr 21 07:38:30 2017
New Revision: 439018
URL: https://svnweb.freebsd.org/changeset/ports/439018
Log:
Fix utils/datetime_test:timestamp__subtraction
Don't expect a negative time delta to throw an exception--instead, expect
1 microsecond to be returned per the behavior change made in r436312.
Approved by: brooks (as part of a larger diff), (maintainer timeout)
Differential Revision: D10316
PR: 217973
Reported by: Jenkins
Reviewed by: asomers
Sponsored by: Dell EMC Isilon
Added:
head/devel/kyua/files/patch-utils_datetime__test.cpp (contents, props changed)
Modified:
head/devel/kyua/Makefile
Modified: head/devel/kyua/Makefile
==============================================================================
--- head/devel/kyua/Makefile Fri Apr 21 07:35:13 2017 (r439017)
+++ head/devel/kyua/Makefile Fri Apr 21 07:38:30 2017 (r439018)
@@ -3,7 +3,7 @@
PORTNAME= kyua
PORTVERSION= 0.13
PORTEPOCH= 3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= https://github.com/jmmv/kyua/releases/download/${PORTNAME}-${PORTVERSION}/ \
LOCAL/jmmv
Added: head/devel/kyua/files/patch-utils_datetime__test.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/kyua/files/patch-utils_datetime__test.cpp Fri Apr 21 07:38:30 2017 (r439018)
@@ -0,0 +1,19 @@
+--- utils/datetime_test.cpp.orig 2017-04-08 05:25:26 UTC
++++ utils/datetime_test.cpp
+@@ -532,11 +532,11 @@ ATF_TEST_CASE_BODY(timestamp__subtractio
+ ATF_REQUIRE_EQ(datetime::delta(100, 0), ts3 - ts1);
+ ATF_REQUIRE_EQ(datetime::delta(99, 999988), ts3 - ts2);
+
+- ATF_REQUIRE_THROW_RE(
+- std::runtime_error,
+- "Cannot subtract 1291970850123456us from 1291970750123468us "
+- ".*negative datetime::delta.*not supported",
+- ts2 - ts3);
++ /*
++ * NOTE (ngie): behavior change for
++ * https://github.com/jmmv/kyua/issues/155 .
++ */
++ ATF_REQUIRE_EQ(datetime::delta::from_microseconds(1), ts2 - ts3);
+ }
+
+
More information about the svn-ports-head
mailing list