diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-12-02 08:45:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 08:45:08 -0500 |
| commit | e631a2599babac42d3032adc0c6d17fa7d342e80 (patch) | |
| tree | 62f3d6185ccffa90a69ac7de91617405b02d2516 /tools/slang-test/unit-test-path.cpp | |
| parent | 200e236d64a02d9e85cb4a459477e073b81f5182 (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/slang-test/unit-test-path.cpp')
| -rw-r--r-- | tools/slang-test/unit-test-path.cpp | 4 |
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); |
