diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2020-05-02 14:16:10 -0700 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2020-05-02 14:16:10 -0700 |
commit | e1afb1bb9b2e8c548b36e9bdd434a2e5d52663ce (patch) | |
tree | efece0fdd1b3e3a19af3fed0db107b280d504cd1 /tests | |
parent | 1ea5c6b71aaac47e10d193ae6b2002173e4b1d73 (diff) | |
download | google-fruit-e1afb1bb9b2e8c548b36e9bdd434a2e5d52663ce.tar.gz |
Update expected error regexes in tests to allow error messages from latest MSVC 2019.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_component_functions.py | 3 | ||||
-rwxr-xr-x | tests/test_normalized_component.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_component_functions.py b/tests/test_component_functions.py index ec70bfc..8dc6a76 100755 --- a/tests/test_component_functions.py +++ b/tests/test_component_functions.py @@ -187,7 +187,8 @@ class TestComponentFunctions(parameterized.TestCase): r'error: use of deleted function .Arg::Arg\(Arg&&\).' r'|error: call to deleted constructor of .Arg.' r'|.Arg::Arg\(Arg &&\).: cannot convert argument 1 from .std::_Tuple_val<Arg>. to .int.' - r'|error: copying parameter of type .Arg. invokes deleted constructor', + r'|error: copying parameter of type .Arg. invokes deleted constructor' + r'|error C2280: .Arg::Arg\(Arg &&\).: attempting to reference a deleted function', COMMON_DEFINITIONS, source) diff --git a/tests/test_normalized_component.py b/tests/test_normalized_component.py index ba21242..8888019 100755 --- a/tests/test_normalized_component.py +++ b/tests/test_normalized_component.py @@ -175,7 +175,7 @@ class TestNormalizedComponent(parameterized.TestCase): expect_generic_compile_error( r'no matching function for call to .fruit::NormalizedComponent<ConstXAnnot>::NormalizedComponent\(fruit::Component<XAnnot> \(&\)\(\)\).' r'|no matching constructor for initialization of .fruit::NormalizedComponent<ConstXAnnot>.' - r'|.fruit::NormalizedComponent<ConstXAnnot>::NormalizedComponent.: none of the 2 overloads could convert all the argument types', + r'|.fruit::NormalizedComponent<ConstXAnnot>::NormalizedComponent.: none of the .* overloads could convert all the argument types', COMMON_DEFINITIONS, source, locals()) |