From 6b68fd45a80196d1462c0fd1e174cead99b3eaeb Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 28 Oct 2020 21:04:12 +0100 Subject: [gdb/testsuite] Fix gdb.rust/traits.exp with -readnow With test-case gdb.rust/traits.exp and target board readnow we get: ... FAIL: gdb.rust/traits.exp: print *td FAIL: gdb.rust/traits.exp: print *tu ... Mark these FAILs as KFAILs. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-10-28 Tom de Vries * lib/gdb.exp (readnow): Handle arg. * gdb.rust/traits.exp: Add KFAILs for -readnow. --- gdb/testsuite/gdb.rust/traits.exp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/testsuite/gdb.rust/traits.exp') diff --git a/gdb/testsuite/gdb.rust/traits.exp b/gdb/testsuite/gdb.rust/traits.exp index 41e58e1..d237b92 100644 --- a/gdb/testsuite/gdb.rust/traits.exp +++ b/gdb/testsuite/gdb.rust/traits.exp @@ -43,5 +43,13 @@ if {![runto ${srcfile}:$line]} { return -1 } +set readnow_p [readnow $binfile] + +if { $readnow_p } { + setup_kfail "gdb/26799" *-*-* +} gdb_test "print *td" " = 23.5" +if { $readnow_p } { + setup_kfail "gdb/26799" *-*-* +} gdb_test "print *tu" " = 23" -- cgit v1.1