aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.rust/simple.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-28 10:22:48 +0200
committerTom de Vries <tdevries@suse.de>2023-03-28 10:22:48 +0200
commitd7f0f10189fa83a73d9819e81fd321142c0c6398 (patch)
tree0c530f2227dd936bb994f3188279df669f5f2de7 /gdb/testsuite/gdb.rust/simple.exp
parent29dd2d27b202cb4f16c77008e8b71b5554b435fc (diff)
downloadgdb-d7f0f10189fa83a73d9819e81fd321142c0c6398.zip
gdb-d7f0f10189fa83a73d9819e81fd321142c0c6398.tar.gz
gdb-d7f0f10189fa83a73d9819e81fd321142c0c6398.tar.bz2
[gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler
Proc allow_rust_tests returns 0 when there's no rust compiler, but that gives the wrong answer for gdb.rust/expr.exp, which doesn't require it. Fix this by using can_compile rust in the test-cases that need it, and just returning 1 in allow_rust_tests. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.rust/simple.exp')
-rw-r--r--gdb/testsuite/gdb.rust/simple.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.rust/simple.exp b/gdb/testsuite/gdb.rust/simple.exp
index 25152a3..08ebed3 100644
--- a/gdb/testsuite/gdb.rust/simple.exp
+++ b/gdb/testsuite/gdb.rust/simple.exp
@@ -17,6 +17,7 @@
load_lib rust-support.exp
require allow_rust_tests
+require {can_compile rust}
standard_testfile .rs
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug rust}]} {