projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dca1af
)
use test-genrandom in tests instead of /dev/urandom
author
Nicolas Pitre
<nico@cam.org>
Wed, 11 Apr 2007 17:35:13 +0000
(13:35 -0400)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 12 Apr 2007 02:31:24 +0000
(19:31 -0700)
This way tests are completely deterministic and possibly more portable.
Signed-off-by: Nicolas Pitre <nico@cam.org>
t/t5301-sliding-window.sh
patch
|
blob
|
history
diff --git
a/t/t5301-sliding-window.sh
b/t/t5301-sliding-window.sh
index a6dbb04a86c06cabb22810822dd0f079c9268dd7..fce77f1255378b715c23be5978fcc13e56ba263d 100755
(executable)
--- a/
t/t5301-sliding-window.sh
+++ b/
t/t5301-sliding-window.sh
@@
-12,7
+12,7
@@
test_expect_success \
for i in a b c
do
echo $i >$i &&
-
dd if=/dev/urandom bs=32k count=1
>>$i &&
+
test-genrandom "$i" 32768
>>$i &&
git-update-index --add $i || return 1
done &&
echo d >d && cat c >>d && git-update-index --add d &&