From b5bbce899a341b373085215e7628d939cabb6cd7 Mon Sep 17 00:00:00 2001 From: Levi Neuwirth Date: Mon, 13 Jul 2026 17:31:12 +0100 Subject: [PATCH] =?UTF-8?q?test(compile):=20portable=20r3f3=20fixture=20?= =?UTF-8?q?=E2=80=94=20macOS=20has=20no=20/bin/true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hostile-metatable half of r3f3 spawned /bin/true, which exists on Linux but not macOS (true lives at /usr/bin/true there), so the spawn failed with NotFound and the pcall absorbed it — failing the "raw reads must not trip a raising __index" assert on both macOS flavors. Use the suite's /bin/sh -c idiom instead. The r1f6 /bin/true specs stay: their type errors fire in spec parsing before any exec, and the asserts pin the message text, so the binary there is inert on every platform. Bite re-verified: against pre-fix src/lua_bindings/mod.rs the test still fails at the pgid assert (metatable-provided group=true honored), so the fixture change keeps its teeth. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01VoiEyuPjoBhvwACf8HAnLB --- tests/compile_mode_acceptance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compile_mode_acceptance.rs b/tests/compile_mode_acceptance.rs index 75dfce4..ddec894 100644 --- a/tests/compile_mode_acceptance.rs +++ b/tests/compile_mode_acceptance.rs @@ -2069,7 +2069,7 @@ fn r3f3_spec_fields_are_raw_reads_metatables_not_honored() { &s, r#" local spec = setmetatable( - { label = "mt2", command = "/bin/true" }, + { label = "mt2", command = "/bin/sh", args = { "-c", "exit 0" } }, { __index = function() error("hostile spec metatable") end }) local ok = pcall(pmacs.process.spawn, spec) return ok