aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/tls3.sh
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-07-22 18:58:28 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 18:58:28 -0500
commit45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c (patch)
tree1bd69ffa9f93f975f72003b820d0787acb645155 /trunk/testsuite/tls3.sh
parent1c973105e4bad9e31f0096fd6baa41e772d17484 (diff)
parentac2eeba55196424954b58cf540c44e42bc2774dc (diff)
downloadprelink-cross-45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c.tar.gz
prelink-cross-45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c.tar.bz2
prelink-cross-45f3e0e99fc1f0385ef2fa5f8c5fd126edb1805c.zip
Merge commit 'ac2eeba55196424954b58cf540c44e42bc2774dc' into cross_prelink
Conflicts: trunk/src/dso.c trunk/testsuite/reloc8.sh trunk/testsuite/reloc9.sh
Diffstat (limited to 'trunk/testsuite/tls3.sh')
-rwxr-xr-xtrunk/testsuite/tls3.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/testsuite/tls3.sh b/trunk/testsuite/tls3.sh
index 8d015d9..6bb1f95 100755
--- a/trunk/testsuite/tls3.sh
+++ b/trunk/testsuite/tls3.sh
@@ -10,7 +10,12 @@ case "`uname -m`" in
ia64|ppc*|x86_64|alpha*|s390*|mips*|arm*) SHFLAGS=-fpic;; # Does not support non-pic shared libs
esac
# Disable this test under SELinux if textrel
-test -z "$SHFLAGS" -a -x /usr/sbin/getenforce -a "`/usr/sbin/getenforce`" = Enforcing && exit 77
+if test -z "$SHFLAGS" -a -x /usr/sbin/getenforce; then
+ case "`/usr/sbin/getenforce 2>/dev/null`" in
+ Permissive|Disabled) ;;
+ *) exit 77 ;;
+ esac
+fi
rm -f tls3 tls3lib*.so tls3.log
rm -f prelink.cache
$CC -shared -O2 -fpic -o tls3lib1.so $srcdir/tls1lib1.c