aboutsummaryrefslogtreecommitdiff
path: root/pw_build/py/file_prefix_map_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'pw_build/py/file_prefix_map_test.py')
-rw-r--r--pw_build/py/file_prefix_map_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw_build/py/file_prefix_map_test.py b/pw_build/py/file_prefix_map_test.py
index 0cb258059..cffa60802 100644
--- a/pw_build/py/file_prefix_map_test.py
+++ b/pw_build/py/file_prefix_map_test.py
@@ -57,9 +57,10 @@ class FilePrefixMapTest(unittest.TestCase):
path_list = [
'/foo_root/root_subdir/source.cc',
'/foo_root/root_subdir/out/../gen.cc',
+ 'out/../gen.cc',
]
prefix_maps = [('/foo_root/root_subdir/', ''), ('out/../', 'out/')]
- expected_paths = ['source.cc', 'out/gen.cc']
+ expected_paths = ['source.cc', 'out/../gen.cc', 'out/gen.cc']
self.assertEqual(
list(file_prefix_map.remap_paths(path_list, prefix_maps)),
expected_paths,