| Index: gdb/testsuite/gdb.base/empty_exe.exp
|
| diff --git a/gdb/testsuite/gdb.base/shell.exp b/gdb/testsuite/gdb.base/empty_exe.exp
|
| similarity index 68%
|
| copy from gdb/testsuite/gdb.base/shell.exp
|
| copy to gdb/testsuite/gdb.base/empty_exe.exp
|
| index 806beee98f352fc7b82ab68c2188fd7a06bfff9d..c40620df5fb1e792e7e366322ab8ae684193d029 100644
|
| --- a/gdb/testsuite/gdb.base/shell.exp
|
| +++ b/gdb/testsuite/gdb.base/empty_exe.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2011-2012 Free Software Foundation, Inc.
|
| +# Copyright 2012-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -13,12 +13,14 @@
|
| # You should have received a copy of the GNU General Public License
|
| # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
| -# Test that the shell and ! commands work.
|
| -
|
| gdb_exit
|
| gdb_start
|
|
|
| -gdb_test "shell echo foo" "foo"
|
| +# Make sure that the "file" command rejects an empty filename,
|
| +# rather than crash.
|
| +gdb_test "file ''" \
|
| + ": No such file or directory\\."
|
|
|
| -gdb_test "! echo foo" "foo"
|
| -gdb_test "!echo foo" "foo"
|
| +# And to make extra sure that GDB is still alive, do a quick
|
| +# sanity check.
|
| +gdb_test "print 1" "= 1"
|
|
|