Mercurial > public > mercurial-scm > hg
diff tests/test-largefiles.t @ 16494:e1f0305eabe4 stable
tests: don't use /dev/urandom for largefiles testing
There is no need to use entropy here just to create some content that only will
be used for hashing and ignored.
This avoids a problem where dd from /dev/urandom on solaris generates too short
output.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 23 Apr 2012 01:56:48 +0200 |
parents | 874a680a3e23 |
children | 12dabc22de77 |
line wrap: on
line diff
--- a/tests/test-largefiles.t Sun Apr 22 21:27:52 2012 -0400 +++ b/tests/test-largefiles.t Mon Apr 23 01:56:48 2012 +0200 @@ -815,7 +815,7 @@ Test --normal flag - $ dd if=/dev/urandom bs=2k count=11k > new-largefile 2> /dev/null + $ dd if=/dev/zero bs=2k count=11k > new-largefile 2> /dev/null $ hg add --normal --large new-largefile abort: --normal cannot be used with --large [255] @@ -945,7 +945,7 @@ $ cd alice $ hg init pubrepo $ cd pubrepo - $ dd if=/dev/urandom bs=1k count=11k > a-large-file 2> /dev/null + $ dd if=/dev/zero bs=1k count=11k > a-large-file 2> /dev/null $ hg add --large a-large-file $ hg commit -m "Add a large file" Invoking status precommit hook