summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-12-07 19:08:11 +0100
committerJörg Thalheim <joerg@thalheim.io>2021-12-07 19:44:37 +0100
commita4027142bf7d36d983fb5286b982b038449c6750 (patch)
tree4ab82ac80d01f29323329222a4e0a536dbdbac0b
parentba000786e9837e00ca1db5531a7e21da2ef225d2 (diff)
downloadpatchelf-a4027142bf7d36d983fb5286b982b038449c6750.tar.gz
tests/grow-file.sh: fix compat with non-gnu systems
-rwxr-xr-xtests/grow-file.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/grow-file.sh b/tests/grow-file.sh
index e01d2be..4c405df 100755
--- a/tests/grow-file.sh
+++ b/tests/grow-file.sh
@@ -8,7 +8,7 @@ mkdir -p ${SCRATCH}
cp simple-pie ${SCRATCH}/simple-pie
# Add a 40MB rpath
-head -c 40000000 /dev/urandom > ${SCRATCH}/foo.bin
+tr -cd 'a-z0-9' < /dev/urandom | dd count=40 bs=1000000 > ${SCRATCH}/foo.bin
# Grow the file
../src/patchelf --add-rpath @${SCRATCH}/foo.bin ${SCRATCH}/simple-pie