gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 3 Mar 2012 06:58:16 +0000 (06:58 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 3 Mar 2012 06:58:16 +0000 (06:58 +0000)
Setup KFAIL for PR server/13796.
* gdb.base/disp-step-syscall.exp (single step over vfork): Setup KFAIL.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/disp-step-syscall.exp

index 1ed442f03d5b0e22bca6ba88f96586ba94cf4f13..26705ed2ee0429387e203fa3d953d79962ee3799 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Setup KFAIL for PR server/13796.
+       * gdb.base/disp-step-syscall.exp (single step over vfork): Setup KFAIL.
+
 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/operator_bp: New testcase.
index 4cf552920cd9f3558636b635dbb4b82ffdb53f31..486701c7eabfa6afd7ce4056ec73505b61d4c693 100644 (file)
@@ -118,7 +118,20 @@ proc disp_step_cross_syscall { syscall } { with_test_prefix "$syscall" {
     gdb_test_no_output "set displaced-stepping on"
 
     # Check the address of next instruction of syscall.
-    gdb_test "stepi" ".*" "single step over $syscall"
+    if {$syscall == "vfork" && [is_remote target]} {
+       setup_kfail server/13796 "*-*-*"
+    }
+    set test "single step over $syscall"
+    gdb_test_multiple "stepi" $test {
+       -re "Program terminated with signal SIGILL,.*\r\n$gdb_prompt $" {
+           fail $test
+           return
+       }
+       -re "\r\n$gdb_prompt $" {
+           pass $test
+       }
+    }
+
     set syscall_insn_next_addr_found [get_hexadecimal_valueof "\$pc" "0"]
 
     set test "single step over $syscall final pc"