This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdb/testsuite: skip gdb.arch/amd64-eval.exp when target is not x86_64


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2e84f897e51ee67ab8d3ddf848c4a2bfebbd7173

commit 2e84f897e51ee67ab8d3ddf848c4a2bfebbd7173
Author: Lukas Durfina <ldurfina@tachyum.com>
Date:   Thu Nov 21 08:37:28 2019 +0100

    gdb/testsuite: skip gdb.arch/amd64-eval.exp when target is not x86_64

Diff:
---
 gdb/testsuite/ChangeLog               | 4 ++++
 gdb/testsuite/gdb.arch/amd64-eval.exp | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 16027e4..1685525 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-11-21  Lukas Durfina  <ldurfina@tachyum.com>
+
+	* gdb.arch/amd64-eval.exp: Skip test if target is not x86-64.
+
 2019-11-21  Tom de Vries  <tdevries@suse.de>
 
 	PR gdb/24956
diff --git a/gdb/testsuite/gdb.arch/amd64-eval.exp b/gdb/testsuite/gdb.arch/amd64-eval.exp
index 4b5c28e..dd24824 100644
--- a/gdb/testsuite/gdb.arch/amd64-eval.exp
+++ b/gdb/testsuite/gdb.arch/amd64-eval.exp
@@ -17,6 +17,11 @@
 
 # This testcase exercises evaluation with amd64 calling conventions.
 
+if { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
+    verbose "Skipping x86_64 eval test."
+    return
+}
+
 standard_testfile .cc
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]