-# Copyright 2012 Free Software Foundation, Inc.
+# Copyright 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
# mirrors this testcase, and should be updated if this testcase is
# changed.
-set basename "inline-break"
-set testfile $basename
+standard_testfile
-if { [prepare_for_testing $testfile.exp $testfile $testfile.c \
+if { [prepare_for_testing $testfile.exp $testfile $srcfile \
{debug optimize=-O2 additional_flags=-Winline}] } {
return -1
}
# The result should be a single-location breakpoint.
#
gdb_test "break func1" \
- "Breakpoint.*at.* file .*$basename\\.c, line.*"
+ "Breakpoint.*at.* file .*$srcfile, line.*"
#
# func2 is a non-static inlined function that is called once.
# a single-location breakpoint.
#
gdb_test "break func3b" \
- "Breakpoint.*at.* file .*$basename\\.c, line.*"
+ "Breakpoint.*at.* file .*$srcfile, line.*"
#
# func4b is a static inlined function that is called once from