-# Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+# Copyright (C) 2008-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
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if $tracelevel then {
- strace $tracelevel
-}
-
if {[skip_shlib_tests]} {
return 0
set lib_opts [list debug nowarnings]
set exec_opts [list debug nowarnings shlib=$lib_sl]
-if [get_compiler_info ${binfile}] {
+if [get_compiler_info] {
return -1
}
if ![runto_main] then {
fail "Can't run to main"
- return 1;
+ return 1
}
#
# set breakpoint at static function static_fun
#
gdb_test "break static_fun" \
- "Breakpoint.*at.* file .*${srcfile}, line.*" \
+ "Breakpoint.*at.* file .*${testfile}\\.c, line.*" \
"breakpoint at static_fun"
#