From 2156dd7a4093a86e6e3599845b7911f3b5ff5745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 15 Apr 2019 19:53:49 +0200 Subject: [PATCH] test/cli: Add test importing a vs solution with absolute path --- test/cli/test-proj2.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/cli/test-proj2.py b/test/cli/test-proj2.py index a497c04e1..e4a497fea 100644 --- a/test/cli/test-proj2.py +++ b/test/cli/test-proj2.py @@ -120,3 +120,11 @@ def test_gui_project_loads_relative_vs_solution(): ret, stdout, stderr = cppcheck('--project=test.cppcheck') assert stderr == '[a/a.c:1]: (error) Division by zero.\n' +def test_gui_project_loads_absolute_vs_solution(): + create_gui_project_file('test.cppcheck', + root_path=os.path.join(os.getcwd(), 'proj2').replace('\\', '/'), + import_project=os.path.join(os.getcwd(), 'proj2', 'proj2.sln').replace('\\', '/')) + ret, stdout, stderr = cppcheck('--project=test.cppcheck') + assert stderr == ('[a/a.c:1]: (error) Division by zero.\n' + '[b/b.c:1]: (error) Division by zero.\n') +