summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@gmail.com>2016-05-29 23:24:19 -0700
committerVolodymyr Sapsai <vsapsai@gmail.com>2016-06-08 22:14:58 -0700
commitd5cfaf0db3746622738fc36ec2be7a7eff5dadab (patch)
tree146f849618656af6b7195992ec354bed099da8ef
parent23119ba66a3186aef334a80f57e4d8754a956e41 (diff)
Fix in tests "fatal error: file not found", make test suite detect such issue.
Issue was exposed by commit 62bc551.
-rwxr-xr-xiwyu_test_util.py2
-rwxr-xr-xrun_iwyu_tests.py9
2 files changed, 10 insertions, 1 deletions
diff --git a/iwyu_test_util.py b/iwyu_test_util.py
index 0caebfa..fb1932e 100755
--- a/iwyu_test_util.py
+++ b/iwyu_test_util.py
@@ -34,7 +34,7 @@ import sys
# These are the warning/error lines that iwyu.cc produces when --verbose >= 3
_EXPECTED_DIAGNOSTICS_RE = re.compile(r'^(.*?):(\d+):.*//\s*IWYU:\s*(.*)$')
_ACTUAL_DIAGNOSTICS_RE = re.compile(r'^(.*?):(\d+):\d+:\s*'
- r'(?:warning|error):\s*(.*)$')
+ r'(?:warning|error|fatal error):\s*(.*)$')
# This is the final summary output that iwyu.cc produces when --verbose >= 1
# The summary for a given source file should appear in that source file,
diff --git a/run_iwyu_tests.py b/run_iwyu_tests.py
index 38533d5..66e320c 100755
--- a/run_iwyu_tests.py
+++ b/run_iwyu_tests.py
@@ -111,6 +111,7 @@ class OneIwyuTest(unittest.TestCase):
'associated_include.cc': ['.'],
'backwards_includes.cc': ['.'],
'badinc.cc': ['.'],
+ 'badinc-extradef.cc': ['.'],
'casts.cc': ['.'],
'catch.cc': ['.'],
'check_also.cc': ['.'],
@@ -118,12 +119,14 @@ class OneIwyuTest(unittest.TestCase):
'comment_pragmas.cc': ['.'],
'computed_include.cc': ['.'],
'conversion_ctor.cc': ['.'],
+ 'cvr.cc': ['.'],
'default_template_arg_other_file.cc': ['.'],
'depopulated_h_file.cc': ['.'],
'derived_function_tpl_args.cc': ['.'],
'double_include.cc': ['.'],
'elaborated_struct.c': ['.'],
'elaborated_type.cc': ['.'],
+ 'external_including_internal.cc': ['.'],
'forward_declare_in_macro.cc': ['.'],
'fullinfo_for_templates.cc': ['.'],
'fwd_decl_class_template.cc': ['.'],
@@ -131,7 +134,9 @@ class OneIwyuTest(unittest.TestCase):
'fwd_decl_with_instantiation.cc': ['.'],
'header_in_subfolder.cc': ['.'],
'implicit_ctor.cc': ['.'],
+ 'include_cycle.cc': ['.'],
'include_with_using.cc': ['.'],
+ 'internal/internal_files.cc': ['.'],
'iwyu_stricter_than_cpp.cc': ['.'],
'keep_mapping.cc': ['.'],
'lateparsed_template.cc': ['.'],
@@ -140,6 +145,7 @@ class OneIwyuTest(unittest.TestCase):
'multiple_include_paths.cc': ['.'],
'new_header_path_provided.cc': ['.'],
'no_comments.cc': ['.'],
+ 'no_fwd_decl_nested_class.cc': ['.'],
'no_h_includes_cc.cc': ['.'],
'non_transitive_include.cc': ['.'],
'overloaded_class.cc': ['.'],
@@ -152,6 +158,7 @@ class OneIwyuTest(unittest.TestCase):
're_fwd_decl.cc': ['.'],
'redecls.cc': ['.'],
'remove_fwd_decl_when_including.cc': ['.'],
+ 'self_include.cc': ['.'],
'sizeof_reference.cc': ['.'],
'specialization_needs_decl.cc': ['.'],
'system_namespaces.cc': ['.'],
@@ -161,8 +168,10 @@ class OneIwyuTest(unittest.TestCase):
'typedef_chain_in_template.cc': ['.'],
'typedef_chain_no_follow.cc': ['.'],
'typedefs_and_resugaring.cc': ['.'],
+ 'unused_class_template_ctor.cc': ['.'],
'uses_printf.cc': ['.'],
'using_aliased_symbol.cc': ['.'],
+ 'using_aliased_symbol_unused.cc': ['.'],
'varargs_and_references.cc': ['.'],
'virtual_tpl_method.cc': ['.'],
}