Skip to content

Commit 92586df

Browse files
authored
Fix pony-lsp diagnostic test failure on OpenBSD (#5085)
On OpenBSD, get_compiler_exe_path relies entirely on argv0 to find the executable (no /proc/self/exe or KERN_PROC_PATHNAME). The diagnostic test was passing an empty string for argv0, so the compiler couldn't locate the builtin package. Other platforms ignored argv0 and used OS-specific mechanisms, masking the bug.
1 parent 7d46adb commit 92586df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pony-lsp/test/_diagnostics_tests.pony

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class \nodoc\ iso _DiagnosticTest is UnitTest
1919
let workspace_dir = Path.join(Path.dir(__loc.file()), "error_workspace")
2020
let harness = TestHarness.create(
2121
h,
22-
PonyCompiler(""),
22+
PonyCompiler("", try h.env.args(0)? else "" end),
2323
object iso is MessageHandler
2424
var received_diagnostics: USize = 0
2525
let expected_messages: Array[String] val = [

0 commit comments

Comments
 (0)