From 3955ec926ca3cc4e56bdace0ce2a2be935ca51d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 Nov 2009 15:26:57 +0000 Subject: =?UTF-8?q?*=20On=20FreeBSD,=20running=20a=20program=20by=20callin?= =?UTF-8?q?g=20the=20ELF=20interpreter=20=20=20directly=20(e.g.=20?= =?UTF-8?q?=E2=80=9C/libexec/ld-elf.so.1=20/bin/ls=E2=80=9D)=20hangs,=20an?= =?UTF-8?q?d=20on=20OpenBSD=20=20=20the=20interpreter=20is=20not=20executa?= =?UTF-8?q?ble.=20=20Let=E2=80=99s=20assume=20that=20it=20only=20works=20?= =?UTF-8?q?=20=20on=20Linux.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/set-interpreter-long.sh | 12 ++++++++---- 1 file 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 -- cgit v0.12