diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-11-04 15:26:57 (GMT) |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-11-04 15:26:57 (GMT) |
commit | 3955ec926ca3cc4e56bdace0ce2a2be935ca51d6 (patch) | |
tree | 94fc7a3f1e2e0b1d651d53546a7f2c47d584b2a2 | |
parent | 68d165cd4faebe588c625efaddecc7e1fae1bc42 (diff) | |
download | patchelf-3955ec926ca3cc4e56bdace0ce2a2be935ca51d6.zip patchelf-3955ec926ca3cc4e56bdace0ce2a2be935ca51d6.tar.gz patchelf-3955ec926ca3cc4e56bdace0ce2a2be935ca51d6.tar.bz2 |
* 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-x | tests/set-interpreter-long.sh | 12 |
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 |