summaryrefslogtreecommitdiff
path: root/tests/set-interpreter-long.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/set-interpreter-long.sh')
-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