Skip to content

Commit

Permalink
make test deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 18, 2024
1 parent 4d017f8 commit 5f982f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/short-first-segment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ cd "${SCRATCH}"

ldd "${EXEC_NAME}"

${PATCHELF} --set-rpath "$(tr -dc A-Za-z0-9 </dev/urandom | head -c 4096)" --output modified1 "${EXEC_NAME}"
${PATCHELF} --add-rpath "$(tr -dc A-Za-z0-9 </dev/urandom | head -c 4096)" modified1

${PATCHELF} --set-rpath "$(printf '=%.0s' $(seq 1 4096))" --output modified1 "${EXEC_NAME}"
${PATCHELF} --add-rpath "$(printf '=%.0s' $(seq 1 4096))" modified1

ldd modified1

Expand Down

0 comments on commit 5f982f1

Please sign in to comment.