From e631a2599babac42d3032adc0c6d17fa7d342e80 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 2 Dec 2020 08:45:08 -0500 Subject: 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. --- tools/slang-test/unit-test-path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/slang-test/unit-test-path.cpp') 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); -- cgit v1.2.3