mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-23 08:45:33 +00:00
7104161: test/sun/tools/jinfo/Basic.sh fails on Ubuntu
Reviewed-by: alanb
This commit is contained in:
parent
4f4ddb6e5f
commit
3cd4eaa1f0
@ -44,7 +44,19 @@ set +e
|
||||
|
||||
failed=0
|
||||
|
||||
if [ $isWindows = false ]; then
|
||||
runSA=true
|
||||
|
||||
if [ $isLinux = true ]; then
|
||||
# Some Linux systems disable non-child ptrace (see 7050524)
|
||||
ptrace_scope=`/sbin/sysctl -n kernel.yama.ptrace_scope`
|
||||
if [ $? = 0 ]; then
|
||||
if [ $ptrace_scope = 1 ]; then
|
||||
runSA=false
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $runSA = true ]; then
|
||||
# -sysprops option
|
||||
${JINFO} -J-XX:+UsePerfData -sysprops $appJavaPid
|
||||
if [ $? != 0 ]; then failed=1; fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user