summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-11-04 15:26:57 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-11-04 15:26:57 +0000
commit3955ec926ca3cc4e56bdace0ce2a2be935ca51d6 (patch)
tree94fc7a3f1e2e0b1d651d53546a7f2c47d584b2a2
parent68d165cd4faebe588c625efaddecc7e1fae1bc42 (diff)
downloadpatchelf-3955ec926ca3cc4e56bdace0ce2a2be935ca51d6.tar.gz
* On FreeBSD, running a program by calling the ELF interpreter
directly (e.g. “/libexec/ld-elf.so.1 /bin/ls”) hangs, and on OpenBSD the interpreter is not executable. Let’s assume that it only works on Linux.
-rwxr-xr-xtests/set-interpreter-long.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/set-interpreter-long.sh b/tests/set-interpreter-long.sh
index 1790795..55ced77 100755
--- a/tests/set-interpreter-long.sh
+++ b/tests/set-interpreter-long.sh
@@ -5,8 +5,10 @@
oldInterpreter=$(../src/patchelf --print-interpreter ./simple)
echo "current interpreter is $oldInterpreter"
-echo "running with explicit interpreter..."
-"$oldInterpreter" ./simple
+if test "$(uname)" = Linux; then
+ echo "running with explicit interpreter..."
+ "$oldInterpreter" ./simple
+fi
rm -rf scratch
mkdir -p scratch
@@ -25,5 +27,7 @@ echo "running with new interpreter..."
ln -s "$oldInterpreter" "$newInterpreter"
scratch/simple
-echo "running with explicit interpreter..."
-"$oldInterpreter" scratch/simple
+if test "$(uname)" = Linux; then
+ echo "running with explicit interpreter..."
+ "$oldInterpreter" scratch/simple
+fi