diff options
| author | Yong He <yonghe@outlook.com> | 2022-08-10 01:58:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-10 01:58:41 -0700 |
| commit | 89083c4b50af8e48e70b25b63cc62aca21ab706c (patch) | |
| tree | 38e9544cd218dbeea0a2f26f267ac16f275c0291 /tools | |
| parent | 9df7fcb023bd5a22f35ecd609b7a50cc6634976c (diff) | |
Language server pointer type support + add `DLLImport` test (#2350)
* Language server pointer type support.
+ Natvis for AST.
* Add completion suggestion for GUID.
* Make executable test able to use slang-rt.
* Fix gcc argument for rpath.
* Fix DLLImport on linux.
* Fix windows.
* Fix.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 607dfb16c..6c42763c3 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -1367,11 +1367,11 @@ TestResult runExecutableTest(TestContext* context, TestInput& input) String actualOutputPath = outputStem + ".actual"; File::remove(actualOutputPath); - // Make the module name the same as the source file - String ext = Path::getPathExt(filePath); - String modulePath = _calcModulePath(input); + // Make the module name the same as the current executable path, so it can discover + // the slang-rt library if needed. + String modulePath = Path::combine( + Path::getParentDirectory(Path::getExecutablePath()), Path::getFileNameWithoutExt(filePath)); - // Remove the binary.. String moduleExePath; { StringBuilder buf; |
