-# 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
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"
-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"