The QuickCheck library swapped the order of the arguments of the 'cover' function in version 2.12. Version 0.3.4 of the Diff library still uses the old argument order. Swapping the argument order makes Diff work with newer versions of QuickCheck. See for the upstream bug report. diff -ruN a/test/Test.hs b/test/Test.hs --- a/test/Test.hs 2016-04-23 01:21:45.000000000 -0400 +++ b/test/Test.hs 2019-11-01 19:13:04.590770903 -0400 @@ -134,7 +134,7 @@ prop_ppDiffR (DiffInput le ri) = let haskDiff=ppDiff $ getGroupedDiff le ri utilDiff= unsafePerformIO (runDiff (unlines le) (unlines ri)) - in cover (haskDiff == utilDiff) 90 "exact match" $ + in cover 90 (haskDiff == utilDiff) "exact match" $ classify (haskDiff == utilDiff) "exact match" (div ((length haskDiff)*100) (length utilDiff) < 110) -- less than 10% bigger where s='sub right'>
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/lsof.scm
AgeCommit message (Expand)Author
2020-11-23gnu: lsof: Cross-compile....* gnu/packages/lsof.scm (lsof)[arguments]: Use CC-FOR-TARGET. Tobias Geerinckx-Rice
2020-11-23gnu: lsof: Make test failures fatal....* gnu/packages/lsof.scm (lsof)[source]: Add patch to make test suite failures stop the build. * gnu/packages/patches/lsof-fatal-test-failures.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Tobias Geerinckx-Rice
2020-11-23gnu: lsof: Respect #:tests?....* gnu/packages/lsof.scm (lsof)[arguments]: The 'check phase takes and respects a TESTS? keyword. Tobias Geerinckx-Rice
2020-11-23gnu: lsof: Update to 4.94.0....* gnu/packages/lsof.scm (lsof): Update to 4.94.0. [source]: Switch to new git upstream. [native-inputs]: Add groff. [arguments]: Remove custom 'unpack phase. Add a 'build-man-page phase. Remove the upstreamed glibc@2.28 test fix. Tobias Geerinckx-Rice
2020-07-16gnu: lsof: Use HTTPS home page....* gnu/packages/lsof.scm (lsof)[home-page]: Use HTTPS. Tobias Geerinckx-Rice