[DHG_packages] 01/01: mockery: Ensure test suite works on file systems with low timestamp granularity (Closes: #815519). Thanks to Steven Chamberlain for the patch.
Joachim Breitner
nomeata at moszumanska.debian.org
Fri Mar 18 18:25:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch master
in repository DHG_packages.
commit f54c976567bcdf1bc1fc2e3ecaf53085f493fbc2
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Fri Mar 18 19:23:35 2016 +0100
mockery: Ensure test suite works on file systems with low timestamp granularity (Closes: #815519). Thanks to Steven Chamberlain for the patch.
---
p/haskell-mockery/debian/changelog | 7 +++++++
.../debian/patches/haskell-mockery.patch | 20 ++++++++++++++++++++
p/haskell-mockery/debian/patches/series | 1 +
3 files changed, 28 insertions(+)
diff --git a/p/haskell-mockery/debian/changelog b/p/haskell-mockery/debian/changelog
index ade99fc..bab8770 100644
--- a/p/haskell-mockery/debian/changelog
+++ b/p/haskell-mockery/debian/changelog
@@ -1,3 +1,10 @@
+haskell-mockery (0.3.2-4) unstable; urgency=medium
+
+ * Ensure test suite works on file systems with low timestamp granularity
+ (Closes: #815519). Thanks to Steven Chamberlain for the patch.
+
+ -- Joachim Breitner <nomeata at debian.org> Fri, 18 Mar 2016 19:22:55 +0100
+
haskell-mockery (0.3.2-3) unstable; urgency=medium
* Switch Vcs-Git/Vcs-Browser headers to new location.
diff --git a/p/haskell-mockery/debian/patches/haskell-mockery.patch b/p/haskell-mockery/debian/patches/haskell-mockery.patch
new file mode 100644
index 0000000..d02abe8
--- /dev/null
+++ b/p/haskell-mockery/debian/patches/haskell-mockery.patch
@@ -0,0 +1,20 @@
+Subject: delay >1sec between testing mtime
+From: Steven Chamberlain <steven at pyro.eu.org>
+Date: Mon, 22 Feb 2016 00:03:42 +0000
+
+Not all filesystems store mtime with sub-second precision. So,
+delay for at least 1 second between sampling the test file's mtime.
+
+--- ./test/Test/Mockery/DirectorySpec.hs.orig 2015-08-08 03:50:38.000000000 +0100
++++ ./test/Test/Mockery/DirectorySpec.hs 2016-02-21 23:59:34.327640846 +0000
+@@ -35,8 +35,8 @@
+ before_ (writeFile name "bar") $ do
+ it "updates modification time" $ do
+ t0 <- getModificationTime name
+- threadDelay 10000
+- whenTravis (threadDelay 1000000)
++ threadDelay 1000000
++ whenTravis (threadDelay 10000000)
+ touch name
+ t1 <- getModificationTime name
+ t0 `shouldSatisfy` (< t1)
diff --git a/p/haskell-mockery/debian/patches/series b/p/haskell-mockery/debian/patches/series
new file mode 100644
index 0000000..5ef132a
--- /dev/null
+++ b/p/haskell-mockery/debian/patches/series
@@ -0,0 +1 @@
+haskell-mockery.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git
More information about the Pkg-haskell-commits
mailing list