This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] testsuite: i386-sse-reverse.exp: Fix false FAILs on CPU w/o SSE
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 24 Feb 2012 01:42:11 +0100
- Subject: [commit] testsuite: i386-sse-reverse.exp: Fix false FAILs on CPU w/o SSE
Hi,
on
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
there is no SSE support at all and the very first test FAILs:
continue
Continuing.
Program received signal SIGILL, Illegal instruction.
sse_test () at ./gdb.reverse/i386-sse-reverse.c:30
30 asm ("movupd %0, %%xmm0":"=m"(buf0));
(gdb) FAIL: gdb.reverse/i386-sse-reverse.exp: continue to end of sse_test
Checked in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2012-02/msg00151.html
--- src/gdb/testsuite/ChangeLog 2012/02/24 00:05:56 1.3090
+++ src/gdb/testsuite/ChangeLog 2012/02/24 00:40:01 1.3091
@@ -1,5 +1,11 @@
2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Fix false FAILs on old CPUs without SSE.
+ * gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test):
+ Return untested for Illegal instruction.
+
+2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
Fix false FAILs with glibc debug infos installed.
* gdb.reverse/solib-precsave.exp (set debug-file-directory): New test.
* gdb.reverse/solib-reverse.exp (set debug-file-directory): New test.
--- src/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp 2012/01/16 16:21:52 1.10
+++ src/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp 2012/02/24 00:40:01 1.11
@@ -67,9 +67,16 @@
"Breakpoint $decimal at .* line $end_sse_test\." \
"set breakpoint at end of sse_test"
-gdb_test "continue" \
- " end sse_test .*" \
- "continue to end of sse_test"
+set test "continue to end of sse_test"
+gdb_test_multiple "continue" $test {
+ -re " end sse_test .*\r\n$gdb_prompt $" {
+ pass $test
+ }
+ -re " Illegal instruction.*\r\n$gdb_prompt $" {
+ untested i386-sse-reverse
+ return -1
+ }
+}
gdb_test "reverse-step" "xorps.*" "reverse-step to xorps"