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

Unified Diff: gdb/testsuite/gdb.cp/filename.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.cp/filename.cc ('k') | gdb/testsuite/gdb.cp/formatted-ref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.cp/filename.exp
diff --git a/gdb/testsuite/gdb.cp/pr9067.exp b/gdb/testsuite/gdb.cp/filename.exp
similarity index 75%
copy from gdb/testsuite/gdb.cp/pr9067.exp
copy to gdb/testsuite/gdb.cp/filename.exp
index cf80be0e145451a235c3a91a7c2981677bf24a07..b9087151639122bc154a631ff692307a1ab102b2 100644
--- a/gdb/testsuite/gdb.cp/pr9067.exp
+++ b/gdb/testsuite/gdb.cp/filename.exp
@@ -1,4 +1,4 @@
-# Copyright 2009-2012 Free Software Foundation, Inc.
+# Copyright 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,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set nl "\[\r\n\]+"
-
if { [skip_cplus_tests] } { continue }
-load_lib "cp-support.exp"
-
standard_testfile .cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
@@ -26,13 +22,12 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
}
if ![runto_main] then {
- perror "couldn't run to breakpoint"
+ perror "couldn't run to main"
continue
}
-gdb_test "print b" ".*same as static member.*"
-
-
-gdb_exit
-return 0
+gdb_breakpoint [gdb_get_line_number "stop here"]
+gdb_continue_to_breakpoint "stop here"
+gdb_test "print includefile\[0\]" " = 23"
+gdb_test "print 'includefile'::some_global" " = 27"
« no previous file with comments | « gdb/testsuite/gdb.cp/filename.cc ('k') | gdb/testsuite/gdb.cp/formatted-ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698