# HG changeset patch # User Laurent Charignon # Date 1428014651 25200 # Node ID 10ad8e5753153fa332d308dacc3ce6dd9ff2f48e # Parent ffa32ca659f1eb26e0f67e68f698837766819c3f tests: make tests work on Mac OS wc -m adds spacing before the results, we trim them to make the test pass on Mac OS. diff --git a/tests/test-inhibit.t b/tests/test-inhibit.t --- a/tests/test-inhibit.t +++ b/tests/test-inhibit.t @@ -132,12 +132,12 @@ check public revision got cleared (when adding the second inhibitor, the first one is removed because it is public) - $ wc -m .hg/store/obsinhibit + $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//' 20 .hg/store/obsinhibit $ hg prune 7 1 changesets pruned $ hg debugobsinhibit --hidden 18214586bf78 - $ wc -m .hg/store/obsinhibit + $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//' 20 .hg/store/obsinhibit $ hg log -G @ 9:55c73a90e4b4 add cJ @@ -158,7 +158,7 @@ 0 files updated, 0 files merged, 1 files removed, 0 files unresolved working directory now at cf5c4f4554ce $ hg debugobsinhibit --hidden 55c73a90e4b4 - $ wc -m .hg/store/obsinhibit + $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//' 20 .hg/store/obsinhibit $ hg log -G o 9:55c73a90e4b4 add cJ