summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-test/slang-test-main.cpp8
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;