summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-12-02 08:45:08 -0500
committerGitHub <noreply@github.com>2020-12-02 08:45:08 -0500
commite631a2599babac42d3032adc0c6d17fa7d342e80 (patch)
tree62f3d6185ccffa90a69ac7de91617405b02d2516 /tools
parent200e236d64a02d9e85cb4a459477e073b81f5182 (diff)
Fix for TC problem with Path unit test (#1621)
* #include an absolute path didn't work - because paths were taken to always be relative. * Hopefully fix for TC issue where canonical path causes problems - perhaps because on test machines visibility of paths outside the build environment is limited.
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-test/unit-test-path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/slang-test/unit-test-path.cpp b/tools/slang-test/unit-test-path.cpp
index 35462f703..fb1e7a0ff 100644
--- a/tools/slang-test/unit-test-path.cpp
+++ b/tools/slang-test/unit-test-path.cpp
@@ -11,11 +11,11 @@ static void pathUnitTest()
{
{
String path;
- SlangResult res = Path::getCanonical(".", path);
+ SlangResult res = Path::getCanonical("source/slang", path);
SLANG_CHECK(SLANG_SUCCEEDED(res));
String parentPath;
- res = Path::getCanonical("..", parentPath);
+ res = Path::getCanonical("source", parentPath);
SLANG_CHECK(SLANG_SUCCEEDED(res));
String parentPath2 = Path::getParentDirectory(path);