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

Unified Diff: gdb/testsuite/gdb.base/ldbl_e308.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/ldbl_e308.c ('k') | gdb/testsuite/gdb.base/lineinc.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.base/ldbl_e308.exp
diff --git a/gdb/testsuite/gdb.cp/pr12028.exp b/gdb/testsuite/gdb.base/ldbl_e308.exp
similarity index 70%
copy from gdb/testsuite/gdb.cp/pr12028.exp
copy to gdb/testsuite/gdb.base/ldbl_e308.exp
index b68235eda22fc51fb155d480e70c674c8b8713fd..55170802d6bac172547d304a8735ad9f966f0fec 100644
--- a/gdb/testsuite/gdb.cp/pr12028.exp
+++ b/gdb/testsuite/gdb.base/ldbl_e308.exp
@@ -1,5 +1,5 @@
-# Copyright 2008, 2011-2012 Free Software Foundation, Inc.
-
+# Copyright (C) 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
# the Free Software Foundation; either version 3 of the License, or
@@ -13,17 +13,19 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-standard_testfile .cc
+set testfile ldbl_e308
+set srcfile ${testfile}.c
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
+ return -1
+}
-if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug c++}] } {
+if ![runto_main] {
+ untested ${testfile}.exp
return -1
}
-############################################
+gdb_test_no_output "set variable ldbl_308 = 1.6e+308l"
-if ![runto_main] then {
- perror "couldn't run to breakpoint main"
- continue
-}
+gdb_test "print ldbl_308" \
+ "= 1\..*e\\+308"
-gdb_test "p D::foo(b)" "Cannot resolve function foo to any overloaded instance"
« no previous file with comments | « gdb/testsuite/gdb.base/ldbl_e308.c ('k') | gdb/testsuite/gdb.base/lineinc.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698