gdb/testsuite: skip gdb.arch/amd64-eval.exp when target is not x86_64
authorLukas Durfina <ldurfina@tachyum.com>
Thu, 21 Nov 2019 07:37:28 +0000 (08:37 +0100)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Nov 2019 15:36:44 +0000 (10:36 -0500)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/amd64-eval.exp

index 16027e474981d62b66940f01c722dab9e48685a1..1685525a3007b02aab97a25599d2646e100d5862 100644 (file)
@@ -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
index 4b5c28e7ce2d7d941f7dc07a42df2c7ffd6351b0..dd2482435a7cb2d7626cb2c9241e502e88c82a30 100644 (file)
 
 # 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 \