diff options
Diffstat (limited to 'libraries/date/052eebaf0086e6bbc5ead01c3f1a8f02496aa701.patch')
-rw-r--r-- | libraries/date/052eebaf0086e6bbc5ead01c3f1a8f02496aa701.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/date/052eebaf0086e6bbc5ead01c3f1a8f02496aa701.patch b/libraries/date/052eebaf0086e6bbc5ead01c3f1a8f02496aa701.patch new file mode 100644 index 0000000000..d7edfa0a4b --- /dev/null +++ b/libraries/date/052eebaf0086e6bbc5ead01c3f1a8f02496aa701.patch @@ -0,0 +1,29 @@ +From 052eebaf0086e6bbc5ead01c3f1a8f02496aa701 Mon Sep 17 00:00:00 2001 +From: Howard Hinnant <howard.hinnant@gmail.com> +Date: Tue, 18 May 2021 16:17:37 -0400 +Subject: [PATCH] When comparing sys_info in test... only compare whether the + saves are equal to 0 and not their actual values. + +This allows one to compare against the binary database +which does not contain actual values of save. +--- + test/posix/ptz.pass.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/test/posix/ptz.pass.cpp b/test/posix/ptz.pass.cpp +index 5601c21d..9e15e3a9 100644 +--- a/test/posix/ptz.pass.cpp ++++ b/test/posix/ptz.pass.cpp +@@ -29,10 +29,11 @@ + bool + is_equal(date::sys_info const& x, date::sys_info const& y) + { ++ using namespace std::chrono; + return x.begin == y.begin && + x.end == y.end && + x.offset == y.offset && +- x.save == y.save && ++ (x.save == minutes{0}) == (y.save == minutes{0}) && + x.abbrev == y.abbrev; + } + |