Skip to content

Commit 8dad294

Browse files
committed
make test deterministic
1 parent b534681 commit 8dad294

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/short-first-segment.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ cd "${SCRATCH}"
2424

2525
ldd "${EXEC_NAME}"
2626

27-
${PATCHELF} --set-rpath "$(tr -dc A-Za-z0-9 </dev/urandom | head -c 4096)" --output modified1 "${EXEC_NAME}"
28-
${PATCHELF} --add-rpath "$(tr -dc A-Za-z0-9 </dev/urandom | head -c 4096)" modified1
27+
28+
${PATCHELF} --set-rpath "$(printf '=%.0s' $(seq 1 4096))" --output modified1 "${EXEC_NAME}"
29+
${PATCHELF} --add-rpath "$(printf '=%.0s' $(seq 1 4096))" modified1
2930

3031
ldd modified1
3132

0 commit comments

Comments
 (0)