[commit] testsuite: Restrict it to x86_64: [Re: RFC: fix PR 14442 - DW_TAG_restrict_type]

Jan Kratochvil
2013-01-15T15:13:11Z

On Mon, 14 Jan 2013 21:53:37 +0100, Tom Tromey wrote:
> I'm checking this in now.

--- 20130110Build-gdbcvs-f18/fedora-18-i386/out/gdb-m32.sum 2013-01-10 03:29:43.443261639 +0100
+++ 20130115Build-gdbcvs-f18/fedora-18-i386/out/gdb-m32.sum 2013-01-15 03:58:18.987076249 +0100

#gdb.dwarf2/dw2-restrict.exp
+Running gdb/testsuite/gdb.dwarf2/dw2-restrict.exp ...
+gdb compile failed, dw2-restrict.c: Assembler messages:
+dw2-restrict.c:54: Error: bad register name `%rdi'
[...]
+dw2-restrict.c:87: Error: bad register name `%rbp'
+UNTESTED: gdb.dwarf2/dw2-restrict.exp: dw2-restrict.exp

Checked in.

Thanks,
Jan

http://sourceware.org/ml/gdb-cvs/2013-01/msg00079.html

--- src/gdb/testsuite/ChangeLog 2013/01/14 21:05:07 1.3507
+++ src/gdb/testsuite/ChangeLog 2013/01/15 15:11:09 1.3508
@@ -1,3 +1,7 @@
+2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.dwarf2/dw2-restrict.exp: Skip compilation on non-x86_64 targets.
+
2013-01-14 Tom Tromey <tromey@redhat.com>

* gdb.base/completion.exp: Add "set gnutarget" test.
--- src/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp 2013/01/14 20:59:27 1.1
+++ src/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp 2013/01/15 15:11:09 1.2
@@ -20,6 +20,11 @@
return 0
}

+# This test can only be run on x86-64 targets.
+if {![istarget x86_64-*] || ![is_lp64_target]} {
+ return 0
+}
+
standard_testfile .S

if {[prepare_for_testing $testfile.exp $testfile $srcfile {nodebug}]} {