Skip to content

Commit a93de9d

Browse files
committed
tests/contiguous-note-sections.sh: use scratch directory
1 parent 683e41d commit a93de9d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/contiguous-note-sections.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#! /bin/sh -e
22

3+
SCRATCH=scratch/$(basename $0 .sh)
4+
5+
rm -rf "${SCRATCH}"
6+
mkdir -p "${SCRATCH}"
7+
8+
cp contiguous-note-sections "${SCRATCH}/"
9+
310
# Running --set-interpreter on this binary should not produce the following
411
# error:
512
# patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections
6-
../src/patchelf --set-interpreter ld-linux-x86-64.so.2 contiguous-note-sections
13+
../src/patchelf --set-interpreter ld-linux-x86-64.so.2 ${SCRATCH}/contiguous-note-sections

0 commit comments

Comments
 (0)