selftest: Move C specific tests in c_family_test()

This commit is contained in:
CohenArthur 2022-01-25 13:59:06 +01:00 committed by CohenArthur
parent 2b1345a736
commit bc47ace0ec
6 changed files with 6 additions and 5 deletions

View File

@ -9111,6 +9111,8 @@ c_family_tests (void)
c_indentation_c_tests ();
c_pretty_print_c_tests ();
c_spellcheck_cc_tests ();
c_diagnostic_c_tests ();
c_opt_problem_cc_tests ();
}
} // namespace selftest

View File

@ -1512,8 +1512,10 @@ extern tree braced_lists_to_strings (tree, tree);
namespace selftest {
/* Declarations for specific families of tests within c-family,
by source file, in alphabetical order. */
extern void c_diagnostic_c_tests (void);
extern void c_format_c_tests (void);
extern void c_indentation_c_tests (void);
extern void c_opt_problem_cc_tests (void);
extern void c_pretty_print_c_tests (void);
extern void c_spellcheck_cc_tests (void);

View File

@ -2466,7 +2466,7 @@ test_num_digits ()
/* Run all of the selftests within this file. */
void
diagnostic_c_tests ()
c_diagnostic_c_tests ()
{
test_print_escaped_string ();
test_print_parseable_fixits_none ();

View File

@ -324,7 +324,7 @@ test_opt_result_failure_at (const line_table_case &case_)
/* Run all of the selftests within this file. */
void
opt_problem_cc_tests ()
c_opt_problem_cc_tests ()
{
test_opt_result_success ();
for_each_line_table_case (test_opt_result_failure_at);

View File

@ -76,7 +76,6 @@ selftest::run_tests ()
json_cc_tests ();
cgraph_c_tests ();
optinfo_emit_json_cc_tests ();
opt_problem_cc_tests ();
ordered_hash_map_tests_cc_tests ();
splay_tree_cc_tests ();
@ -95,7 +94,6 @@ selftest::run_tests ()
/* Higher-level tests, or for components that other selftests don't
rely on. */
diagnostic_show_locus_c_tests ();
diagnostic_c_tests ();
diagnostic_format_json_cc_tests ();
edit_context_c_tests ();
fold_const_c_tests ();

View File

@ -238,7 +238,6 @@ extern void hash_map_tests_c_tests ();
extern void hash_set_tests_c_tests ();
extern void input_c_tests ();
extern void json_cc_tests ();
extern void opt_problem_cc_tests ();
extern void optinfo_emit_json_cc_tests ();
extern void opts_c_tests ();
extern void ordered_hash_map_tests_cc_tests ();