Update copyright year range in all GDB files.
[external/binutils.git] / gdb / testsuite / gdb.cp / static-method.exp
index 21e3747..660e893 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2011 Free Software Foundation, Inc.
+# Copyright 2011-2019 Free Software Foundation, Inc.
 #
 # Contributed by Red Hat, originally written by Keith Seitz.
 #
@@ -41,10 +41,9 @@ proc test_breakpoint {func result} {
 if {[skip_cplus_tests]} { continue }
 
 # Tests for c++/12750
-set testfile "static-method"
-set srcfile $testfile.cc
+standard_testfile .cc
 
-if {[prepare_for_testing $testfile $testfile $srcfile {c++ debug}]} {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} {
     return -1
 }
 
@@ -60,7 +59,8 @@ gdb_test_multiple $test $test {
        pass $test
     }
     -re "Symbol \"A::func\\(\\)\" is a function at address .*\r\n$gdb_prompt $" {
-       kfail gcc/45682 $test
+       setup_xfail gcc/45682 "*-*-*"
+       fail $test
        set have_gcc_45682_fixed 0
     }
 }
@@ -87,22 +87,22 @@ foreach test $methods {
     # with the filename pre-pended.
     if {[string compare $test "xxx::${ans}::A::func"] == 0
        && !$have_gcc_45682_fixed} {
-       setup_kfail gcc/45682 "*-*-*"
+       setup_xfail gcc/45682 "*-*-*"
     }
     gdb_test "list ${srcfile}:$test" $result
     if {[string compare $test "xxx::${ans}::A::func"] == 0
        && !$have_gcc_45682_fixed} {
-       setup_kfail gcc/45682 "*-*-*"
+       setup_xfail gcc/45682 "*-*-*"
     }
     gdb_test "list '${srcfile}:$test'" $result
     if {[string compare $test "xxx::${ans}::A::func"] == 0
        && !$have_gcc_45682_fixed} {
-       setup_kfail gcc/45682 "*-*-*"
+       setup_xfail gcc/45682 "*-*-*"
     }
     gdb_test "list '${srcfile}':'$test'" $result
     if {[string compare $test "xxx::${ans}::A::func"] == 0
        && !$have_gcc_45682_fixed} {
-       setup_kfail gcc/45682 "*-*-*"
+       setup_xfail gcc/45682 "*-*-*"
     }
     gdb_test "list ${srcfile}:'$test'" $result