# HG changeset patch # User Will Maier # Date 2009-06-04 23:33:30 # Node ID da1b93583855cb9802aec52d695af4a05ba8c02d # Parent b5e9ed63913b2d953eb7f6fd704b5e356fa53642 Make test-verify SUSv3 compatible. 'head -c' isn't supported on (at least) OpenBSD and is not part of SUSv3. Instead, use dd. See also: http://www.opengroup.org/onlinepubs/009695399/utilities/head.html diff --git a/tests/test-verify b/tests/test-verify --- a/tests/test-verify +++ b/tests/test-verify @@ -35,7 +35,7 @@ hg add a hg ci -m a echo 'corrupted' > b -head -c 20 .hg/store/data/a.i > start +dd if=.hg/store/data/a.i of=start bs=1 count=20 2>/dev/null cat start b > .hg/store/data/a.i echo