X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.base%2Fcode-expr.exp;h=78b6c537f989188e4c8cd916bb3ff9b950972757;hb=618f726fcb851883a0094aa7fa17003889b7189f;hp=830d97da12d872d81a5e49cabce41ed8b7185fa8;hpb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.base/code-expr.exp b/gdb/testsuite/gdb.base/code-expr.exp index 830d97da12..78b6c537f9 100644 --- a/gdb/testsuite/gdb.base/code-expr.exp +++ b/gdb/testsuite/gdb.base/code-expr.exp @@ -1,4 +1,4 @@ -# Copyright (C) 2001, 2007, 2008 Free Software Foundation, Inc. +# Copyright (C) 2001-2016 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,45 +13,27 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Please email any bugs, comments, and/or additions to this file to: -# bug-gdb@prep.ai.mit.edu - # Written by Michael Snyder, Red Hat, Inc., 9/20/2001 # This file is part of the gdb testsuite # Tests for type expressions using the new "@code" and "@data" modifiers. -if $tracelevel then { - strace $tracelevel - } - # # test running programs # -set prms_id 0 -set bug_id 0 -set testfile "cvexpr" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile cvexpr.c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested code-expr.exp return -1 } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - -if [target_info exists gdb_stub] { - gdb_step_for_stub; -} +clean_restart ${binfile} -gdb_test "set print sevenbit-strings" "" "" -gdb_test "set print address off" "" "" -gdb_test "set width 0" "" "" +gdb_test_no_output "set print sevenbit-strings" +gdb_test_no_output "set print address off" +gdb_test_no_output "set width 0" set ws "\[ \t\]*"