[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[committed] Require gdb-add-index for gdb-add-index.sh
Hi,
On systems without gdb-add-index, we run into:
...
gdb-add-index.sh: 3: gdb-add-index.sh: gdb-add-index: not found
FAIL: /home/vries/dwz/dwz.git/testsuite/dwz.tests/gdb-add-index.sh
...
Fix this by requiring gdb-add-index for gdb-add-index.sh.
Committed to trunk.
Thanks,
- Tom
Require gdb-add-index for gdb-add-index.sh
2019-07-09 Tom de Vries <tdevries@suse.de>
* testsuite/dwz.tests/dwz-tests.exp: Require gdb-add-index for
gdb-add-index.sh.
---
testsuite/dwz.tests/dwz-tests.exp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/testsuite/dwz.tests/dwz-tests.exp b/testsuite/dwz.tests/dwz-tests.exp
index 9dda522..ce7343f 100644
--- a/testsuite/dwz.tests/dwz-tests.exp
+++ b/testsuite/dwz.tests/dwz-tests.exp
@@ -65,6 +65,12 @@ foreach test $tests {
continue
}
}
+ if { $basename == "gdb-add-index.sh" } {
+ if { [catch { exec which gdb-add-index } ] } {
+ unsupported "$test"
+ continue
+ }
+ }
set unsupported 0
foreach required_exec $required_execs {