From 4e8d01487d3bb90a66098d03ab5d0e8a4b29af3f Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 18 Sep 2012 11:28:36 -0400 Subject: Fixed handling of exact path matches in vpath building --- tests/project/test_vpaths.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3