aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2022-09-16 10:50:34 +0200
committerClément Chigot <chigot@adacore.com>2022-09-26 17:20:11 +0200
commite9d92351722884fda8914021b25e5d5a6cc1a181 (patch)
treecfa4c9bf32925d087a9e27fa2e87436804e97258 /binutils/testsuite/binutils-all
parent757b1c20d49438a19cb3bfd5ce5db20f40ce4e21 (diff)
downloadgdb-e9d92351722884fda8914021b25e5d5a6cc1a181.zip
gdb-e9d92351722884fda8914021b25e5d5a6cc1a181.tar.gz
gdb-e9d92351722884fda8914021b25e5d5a6cc1a181.tar.bz2
binutils/testsuite: skip gentestdlls related tests if missing
When launching the testsuite through runtest outside the build tree, gentestdlls might not be available, this binary being created by make check. Simply untested the related tests instead of crashing. binutils/ChangeLog: * testsuite/binutils-all/objdump.exp: Skip dotnet tests if gentestdlls is not available.
Diffstat (limited to 'binutils/testsuite/binutils-all')
-rw-r--r--binutils/testsuite/binutils-all/objdump.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp
index fb09942..436fc46 100644
--- a/binutils/testsuite/binutils-all/objdump.exp
+++ b/binutils/testsuite/binutils-all/objdump.exp
@@ -787,6 +787,12 @@ proc test_objdump_dotnet_assemblies {} {
set test "dotnet-assemblies"
+ # If gentestdlls isn't available, skip instead of crashing below.
+ if ![file exists $base_dir/testsuite/gentestdlls] {
+ untested $test
+ return
+ }
+
set got [binutils_run "$base_dir/testsuite/gentestdlls" "tmpdir pei-i386 pei-x86-64"]
set want "wrote linux-pei-x86-64.dll"
# The test program is hardcoded to generate valid dlls on any target