Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2012-09-18 19:28:36 +0400
committerJason Perkins <starkos@industriousone.com>2012-09-18 19:28:36 +0400
commit4e8d01487d3bb90a66098d03ab5d0e8a4b29af3f (patch)
tree3d22510464d89b13dc246eda3e61de0ff2f6db26 /tests
parenta4e68c68cf6b2364846937ac93e30ade58878a3e (diff)
Fixed handling of exact path matches in vpath building
Diffstat (limited to 'tests')
-rw-r--r--tests/project/test_vpaths.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/project/test_vpaths.lua b/tests/project/test_vpaths.lua
index 8616907..9a099ee 100644
--- a/tests/project/test_vpaths.lua
+++ b/tests/project/test_vpaths.lua
@@ -57,6 +57,13 @@
test.isequal("sources/hello.c", project.getvpath(prj, "src/myproject/hello.c"))
end
+ function suite.ExactFilenameMatch()
+ files { "src/hello.c" }
+ vpaths { ["sources"] = "src/hello.c" }
+ prepare()
+ test.isequal("sources/hello.c", project.getvpath(prj, "src/hello.c"))
+ end
+
--
-- Test wildcard patterns