From 89083c4b50af8e48e70b25b63cc62aca21ab706c Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 10 Aug 2022 01:58:41 -0700 Subject: 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 --- tools/slang-test/slang-test-main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') 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; -- cgit v1.2.3