Skip to content

Commit a402714

Browse files
committed
tests/grow-file.sh: fix compat with non-gnu systems
1 parent ba00078 commit a402714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/grow-file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mkdir -p ${SCRATCH}
88
cp simple-pie ${SCRATCH}/simple-pie
99

1010
# Add a 40MB rpath
11-
head -c 40000000 /dev/urandom > ${SCRATCH}/foo.bin
11+
tr -cd 'a-z0-9' < /dev/urandom | dd count=40 bs=1000000 > ${SCRATCH}/foo.bin
1212

1313
# Grow the file
1414
../src/patchelf --add-rpath @${SCRATCH}/foo.bin ${SCRATCH}/simple-pie

0 commit comments

Comments
 (0)