binutils/
[external/binutils.git] / gdb / testsuite / gdb.base / info-proc.exp
index 1591fa2..105116a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2002, 2003, 2004, 2007, 2008, 2009, 2010
+# Copyright 2002, 2003, 2004, 2007, 2008, 2009, 2010, 2011
 # Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -56,8 +56,7 @@ gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
 # Does this gdb support info proc?
-send_gdb "help info proc\n"
-gdb_expect {
+gdb_test_multiple "help info proc" "help info proc" {
     -re "Undefined info command: .proc..  Try .help info.*$gdb_prompt $" {
        # info proc command not supported -- nothing to test here.
        unsupported "gdb does not support info proc on this target"
@@ -66,12 +65,6 @@ gdb_expect {
     -re "Show /proc process information about .*$gdb_prompt $" {
        pass "help info proc"
     }
-    -re ".*$gdb_prompt $" {
-       fail "help info proc"
-    }
-    timeout {
-       fail "help info proc (timeout)"
-    }
 }
 
 gdb_test "info proc" "No current process.*" "info proc without a process"