aboutsummaryrefslogtreecommitdiff
path: root/gprofng/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-03-14 15:38:04 -0700
committerH.J. Lu <hjl.tools@gmail.com>2022-03-17 10:28:58 -0700
commitcac97c41c20c9866baecefbdc53976af1475f0a1 (patch)
tree514edff8f8adc84cc0dc5a42b7e0925a4dc744e4 /gprofng/testsuite
parent0e30a3b0f233f828cc3274c2131ed31db275629c (diff)
downloadgdb-cac97c41c20c9866baecefbdc53976af1475f0a1.zip
gdb-cac97c41c20c9866baecefbdc53976af1475f0a1.tar.gz
gdb-cac97c41c20c9866baecefbdc53976af1475f0a1.tar.bz2
gprofng: Skip jsynprog with a broken javac
On CET enabled Linux/x86-64 machines, one can get $ javac simple.java Error: dl failure on line 894 Error: failed /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-6.fc35.x86_64/jre/lib/amd64/server/libjvm.so, because /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-6.fc35.x86_64/jre/lib/amd64/server/libjvm.so: rebuild shared object with SHSTK support enabled Set GPROFNG_BROKEN_JAVAC to "yes" only with a broken javac and skip the jsynprog test with a broken javac. PR gprofng/28965 * Makefile.am (GPROFNG_BROKEN_JAVAC): New. (check-DEJAGNU): Pass GPROFNG_BROKEN_JAVAC to runtest. * configure.ac (GPROFNG_BROKEN_JAVAC): New AC_SUBST. Set to yes with a broken javac. * Makefile.in: Regenerate. * configure: Likewise. * testsuite/gprofng.display/display.exp: Skip jsynprog with a broken javac.
Diffstat (limited to 'gprofng/testsuite')
-rw-r--r--gprofng/testsuite/gprofng.display/display.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gprofng/testsuite/gprofng.display/display.exp b/gprofng/testsuite/gprofng.display/display.exp
index 108144c..dfb383e 100644
--- a/gprofng/testsuite/gprofng.display/display.exp
+++ b/gprofng/testsuite/gprofng.display/display.exp
@@ -68,6 +68,8 @@ switch $pltf {
}
}
+global GPROFNG_BROKEN_JAVAC
+
foreach line $table {
set dir [lindex $line 0]
set cflags [lindex $line 1]
@@ -75,7 +77,11 @@ foreach line $table {
verbose [file rootname $line]
verbose running display test $line
- run_display_test $dir $cflags $gprofflags
+ if { $GPROFNG_BROKEN_JAVAC == "yes" && $dir == "jsynprog" } {
+ unsupported $dir
+ } else {
+ run_display_test $dir $cflags $gprofflags
+ }
}