Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: gdb/testsuite/gdb.base/empty_exe.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/echo.exp ('k') | gdb/testsuite/gdb.base/ena-dis-br.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
« no previous file with comments | « gdb/testsuite/gdb.base/echo.exp ('k') | gdb/testsuite/gdb.base/ena-dis-br.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698