summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
Diffstat (limited to 'Utility')
-rw-r--r--Utility/InodeCache.hs3
-rw-r--r--Utility/QuickCheck.hs3
2 files changed, 2 insertions, 4 deletions
diff --git a/Utility/InodeCache.hs b/Utility/InodeCache.hs
index e91771a07..7e2d9992a 100644
--- a/Utility/InodeCache.hs
+++ b/Utility/InodeCache.hs
@@ -210,7 +210,8 @@ instance Arbitrary InodeCache where
let prim = InodeCachePrim
<$> arbitrary
<*> arbitrary
- <*> arbitrary
+ -- timestamp cannot be negative
+ <*> (abs . fromInteger <$> arbitrary)
in InodeCache <$> prim
#ifdef mingw32_HOST_OS
diff --git a/Utility/QuickCheck.hs b/Utility/QuickCheck.hs
index 0181ea950..e89d103dd 100644
--- a/Utility/QuickCheck.hs
+++ b/Utility/QuickCheck.hs
@@ -35,9 +35,6 @@ instance (Arbitrary v, Ord v) => Arbitrary (S.Set v) where
instance Arbitrary POSIXTime where
arbitrary = fromInteger <$> nonNegative arbitrarySizedIntegral
-instance Arbitrary EpochTime where
- arbitrary = fromInteger <$> nonNegative arbitrarySizedIntegral
-
{- Pids are never negative, or 0. -}
instance Arbitrary ProcessID where
arbitrary = arbitrarySizedBoundedIntegral `suchThat` (> 0)