]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix plugin testsuite, remove uses of TODO_dump_func (PR testsuite/52948)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 16 Apr 2012 10:14:40 +0000 (10:14 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 16 Apr 2012 10:14:40 +0000 (10:14 +0000)
* lib/plugin-support.exp (plugin-test-execute): Properly determine
testcase name.
Use fail, pass instead of unresolved.
Don't log $optstr.

PR testsuite/52948
* g++.dg/plugin/dumb_plugin.c (pass_dumb_plugin_example): Remove
TODO_dump_func.
* g++.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise.
* gcc.dg/plugin/one_time_plugin.c (one_pass): Likewise.
* gcc.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise.

From-SVN: r186490

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/plugin/dumb_plugin.c
gcc/testsuite/g++.dg/plugin/selfassign.c
gcc/testsuite/gcc.dg/plugin/one_time_plugin.c
gcc/testsuite/gcc.dg/plugin/selfassign.c
gcc/testsuite/lib/plugin-support.exp

index 9b35b60e1d72ae27210c9617e51ea28f05ca2c2a..847f90e815b698f7976d180cc9bb553e58902077 100644 (file)
@@ -1,3 +1,17 @@
+2012-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lib/plugin-support.exp (plugin-test-execute): Properly determine
+       testcase name.
+       Use fail, pass instead of unresolved.
+       Don't log $optstr.
+
+       PR testsuite/52948
+       * g++.dg/plugin/dumb_plugin.c (pass_dumb_plugin_example): Remove
+       TODO_dump_func.
+       * g++.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise.
+       * gcc.dg/plugin/one_time_plugin.c (one_pass): Likewise.
+       * gcc.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise.
+
 2012-04-16  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/52968
index 5bbd5d790fe48298536bc8f5f334db6e730abbd1..8913e8694e3475cceb1c8cbe8b3234691bfb18f0 100644 (file)
@@ -72,7 +72,7 @@ static struct gimple_opt_pass pass_dumb_plugin_example =
     0,                                    /* properties_provided */
     0,                                    /* properties_destroyed */
     0,                                    /* todo_flags_start */
-    TODO_dump_func                        /* todo_flags_finish */
+    0                                    /* todo_flags_finish */
   }
 };
 
index 84d2801d2021aba70bc31ec7ff05699244d5386c..feb4130e5320d8a70267207c6c275302a3923836 100644 (file)
@@ -276,7 +276,7 @@ static struct gimple_opt_pass pass_warn_self_assign =
     0,                                    /* properties_provided */
     0,                                    /* properties_destroyed */
     0,                                    /* todo_flags_start */
-    TODO_dump_func                        /* todo_flags_finish */
+    0                                    /* todo_flags_finish */
   }
 };
 
index 2c4cd497192a3b236fe4975f2ca1c535b9bcd339..4bd99f128305352523c8f5b6193484f73e72ae47 100644 (file)
@@ -42,7 +42,7 @@ struct gimple_opt_pass one_pass =
   0,                                    /* properties_provided */
   0,                                    /* properties_destroyed */
   0,                                    /* todo_flags_start */
-  TODO_dump_func                        /* todo_flags_finish */
+  0                                    /* todo_flags_finish */
   }
 };
 
index 84d2801d2021aba70bc31ec7ff05699244d5386c..feb4130e5320d8a70267207c6c275302a3923836 100644 (file)
@@ -276,7 +276,7 @@ static struct gimple_opt_pass pass_warn_self_assign =
     0,                                    /* properties_provided */
     0,                                    /* properties_destroyed */
     0,                                    /* todo_flags_start */
-    TODO_dump_func                        /* todo_flags_finish */
+    0                                    /* todo_flags_finish */
   }
 };
 
index 7d04bf17fc07989128019d090371f9f35834bb3f..fcbbb675c5836782d5144ea7db1bf3923a38ca89 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+#   Copyright (C) 2009, 2010, 2012 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
@@ -70,7 +70,8 @@ proc plugin-test-execute { plugin_src plugin_tests } {
     set base [file rootname $basename]
     set plugin_lib $base.so
 
-    verbose "Test the plugin $basename" 1
+    set testcase [dg-trim-dirname $srcdir $plugin_src]
+    verbose "Test the plugin $testcase" 1
 
     # Build the plugin itself
     set extra_flags [plugin-get-options $plugin_src]
@@ -113,8 +114,12 @@ proc plugin-test-execute { plugin_src plugin_tests } {
     set_ld_library_path_env_vars
 
     if { $status != 0 } then {
-       unresolved "$basename compilation, $optstr"
+       fail "$testcase compilation"
+       # Strictly, this is wrong: the tests compiled with the plugin should
+       # become unresolved instead.
        return
+    } else {
+       pass "$testcase compilation"
     }
 
     # Compile the input source files with the plugin