diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-12-19 09:36:21 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-12-19 09:36:21 +0100 |
commit | b1fb503404584f0e1965e06fce558b8841cb3a4d (patch) | |
tree | 0d4470813846196eadcf78337379e6c3f287315e /gprofng/testsuite | |
parent | f8b6a781fb6b7e799c95c1c2be87accc39c0b7c0 (diff) | |
download | gdb-b1fb503404584f0e1965e06fce558b8841cb3a4d.zip gdb-b1fb503404584f0e1965e06fce558b8841cb3a4d.tar.gz gdb-b1fb503404584f0e1965e06fce558b8841cb3a4d.tar.bz2 |
gprofng/testsuite: skip Java test without JDK
There's no point in even trying the Java test when gprofng was built
without Java support, and when the building of the constituents of the
testcase also would fail. On such systems this converts the respective
tests from "unresolved" to "unsupported", making the overall testsuite
run no longer report failure just because of this.
Diffstat (limited to 'gprofng/testsuite')
-rw-r--r-- | gprofng/testsuite/gprofng.display/display.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gprofng/testsuite/gprofng.display/display.exp b/gprofng/testsuite/gprofng.display/display.exp index 8ba0393..237d577 100644 --- a/gprofng/testsuite/gprofng.display/display.exp +++ b/gprofng/testsuite/gprofng.display/display.exp @@ -54,6 +54,7 @@ switch $pltf { } } +global JDK_INC global GPROFNG_BROKEN_JAVAC foreach line $table { @@ -63,7 +64,8 @@ foreach line $table { verbose [file rootname $line] verbose running display test $line - if { $GPROFNG_BROKEN_JAVAC == "yes" && $dir == "jsynprog" } { + if { $dir == "jsynprog" + && ($JDK_INC == "" || $GPROFNG_BROKEN_JAVAC == "yes") } { unsupported $dir } else { run_display_test $dir $cflags $gprofflags |