diff options
author | Brad King <brad.king@kitware.com> | 2021-01-11 14:17:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-16 15:24:41 (GMT) |
commit | fd30bd93e6f4334a9cd317a1e5eb8181fffa7a42 (patch) | |
tree | 4ab5846d7b33f7e3fa0acff7845588518a562395 /Tests/RunCMake/FileAPI | |
parent | 415ead81533ead72fca8a495c3cbc17e2bf4e400 (diff) | |
download | CMake-fd30bd93e6f4334a9cd317a1e5eb8181fffa7a42.zip CMake-fd30bd93e6f4334a9cd317a1e5eb8181fffa7a42.tar.gz CMake-fd30bd93e6f4334a9cd317a1e5eb8181fffa7a42.tar.bz2 |
fileapi: Re-organize backtrace infrastructure
Make it available to more parts of the codemodel object.
Diffstat (limited to 'Tests/RunCMake/FileAPI')
-rw-r--r-- | Tests/RunCMake/FileAPI/codemodel-v2-check.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/RunCMake/FileAPI/codemodel-v2-check.py b/Tests/RunCMake/FileAPI/codemodel-v2-check.py index df2410a..e155037 100644 --- a/Tests/RunCMake/FileAPI/codemodel-v2-check.py +++ b/Tests/RunCMake/FileAPI/codemodel-v2-check.py @@ -94,8 +94,7 @@ def check_directory(c): return _check -def check_target_backtrace_graph(t): - btg = t["backtraceGraph"] +def check_backtrace_graph(btg): assert is_dict(btg) assert sorted(btg.keys()) == ["commands", "files", "nodes"] assert is_list(btg["commands"]) @@ -148,7 +147,7 @@ def check_target(c): assert is_string(obj["name"], expected["name"]) assert matches(obj["id"], expected["id"]) assert is_string(obj["type"], expected["type"]) - check_target_backtrace_graph(obj) + check_backtrace_graph(obj["backtraceGraph"]) assert is_dict(obj["paths"]) assert sorted(obj["paths"].keys()) == ["build", "source"] |