warn if "source" fails to open the file when from_tty == 0
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / long_long.exp
index fd33bfd237182c7d7291c359461a86cb85f220de..dcd115e732020baf49ffd6280d5d0cd772689a30 100644 (file)
@@ -1,6 +1,6 @@
 # This testcase is part of GDB, the GNU debugger.
 
-# Copyright 1997-2004, 2007-2012 Free Software Foundation, Inc.
+# Copyright 1997-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
 # long_long.exp   Test printing of 64-bit things in 32-bit gdb.
 #                 Also test differnet kinds of formats.
 #
-if $tracelevel then {
-       strace $tracelevel
-}
-
 if [target_info exists no_long_long] {
     return 0
 }
 
-set testfile long_long
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .c
 
 # What compiler are we using?
 #
-if [get_compiler_info ${binfile}] {
+if [get_compiler_info] {
     return -1
 }
 
@@ -50,10 +44,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [con
 # use this to debug:
 #log_user 1
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${binfile}
 
 if { ![runto known_types] } then { 
    fail "run to known_types" 
@@ -165,7 +156,7 @@ if { $sizeof_double == 8 || $sizeof_long_double == 8 } {
     # EABI targets default to natural-endian VFP format.
 
     if { ([istarget "arm*-*-*"]) \
-        && !([istarget "*-*-*eabi"] || \
+        && !([istarget "*-*-*eabi*"] || \
              [istarget "*-*-mingw32ce*"] || \
              [istarget "*-*-openbsd*"] || \
              [istarget "*-*-symbianelf"]) } then {
This page took 0.025375 seconds and 4 git commands to generate.