Permalink
Browse files

Fix test ForwardDeclaration:forward_declared_object_points_to_real_de…

…claration_through_macro
  • Loading branch information...
cslux committed Jun 15, 2018
1 parent b8e3b37 commit 1ea5e1d1253df77fe82c093d36541e50ea66bb84
Showing with 3 additions and 3 deletions.
  1. +2 −2 tests/automated/ForwardDeclaration/expectation.json
  2. +1 −1 tests/automated/test_runner.py
@@ -3,8 +3,8 @@
"rc-command": [ "--follow-location", "{0}/contains_forward_declaration.hpp:3:16"],
"expectation": ["{0}/include.hpp:2:8"] },
{ "name": "forward_declared_object_points_to_real_declaration_through_macro",
"rc-command": [ "--follow-location", "{0}/main.cpp:10:15"],
"expectation": ["{0}/include.hpp:2:8"] },
"rc-command": [ "--follow-location", "{0}/main.cpp:10:15", "--all-targets"],
"expectation": ["{0}/include.hpp:2:8", "{0}/main.cpp:5:1"] },
{ "name": "reference_to_opaque_forward_declaration",
"rc-command": [ "--references", "{0}/main.cpp:13:8"],
"expectation": ["{0}/main.cpp:17:5"] }
@@ -154,7 +154,7 @@ def test_generator():
"""
base_test_dir = os.path.dirname(os.path.abspath(__file__))
for test_dir, _, test_files in tuple(os.walk(base_test_dir))[1:]:
if "__pycache__" in test_dir or "ForwardDeclaration" in test_dir:
if "__pycache__" in test_dir:
continue
expectations = json.load(open(os.path.join(test_dir, "expectation.json"), 'r'))
rdm = setup_rdm(test_dir, test_files)

0 comments on commit 1ea5e1d

Please sign in to comment.