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
diff options
context:
space:
mode:
authorstarkos <none@none>2010-02-27 05:50:55 +0300
committerstarkos <none@none>2010-02-27 05:50:55 +0300
commit3c0ebd1984ebfd4ca4f3f290fad68eadf8d2a253 (patch)
treeac80e41082eda7ff66f08f132cf941e454ceeb27 /tests/base
parentec947a32fc5f4e80a7b9ec362a8f58cc21868844 (diff)
Bug 2953594: includedirs / libdirs converting absolute paths to relative
Diffstat (limited to 'tests/base')
-rw-r--r--tests/base/test_path.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/base/test_path.lua b/tests/base/test_path.lua
index c2d1be7..7185e36 100644
--- a/tests/base/test_path.lua
+++ b/tests/base/test_path.lua
@@ -125,6 +125,9 @@
test.isequal("$(SDK_HOME)/include", path.getrelative("C:/Code/Premake4", "$(SDK_HOME)/include"))
end
+ function suite.getrelative_ReturnsAbsPath_OnRootedPath()
+ test.isequal("/opt/include", path.getrelative("/home/me/src/project", "/opt/include"))
+ end
--