From 60bb5d92e2911c0e5b470ed3eb7d3ca3c134c6fb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 21 Oct 2026 23:41:26 +0000 Subject: [PATCH] test(erlang): reject an empty BEAM path at the CLI NUL paths cannot be passed through process spawn, so the shared NUL rule stays covered by the public schema and service tests. Co-authored-by: morluto --- tests/acceptance/erlangBeamCli.test.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/acceptance/erlangBeamCli.test.ts b/tests/acceptance/erlangBeamCli.test.ts index d805a70d79..883c448d00 100644 --- a/tests/acceptance/erlangBeamCli.test.ts +++ b/tests/acceptance/erlangBeamCli.test.ts @@ -42,16 +42,14 @@ cliTest( }, ); -cliTest("rejects empty and NUL BEAM paths before reading", async ({ cli }) => { +cliTest("rejects an empty BEAM path before reading", async ({ cli }) => { const root = await createTestTempDirectory("rea-beam-cli-path-"); - for (const path of ["", "app\0.beam"]) { - const result = await cli.run({ - arguments: ["inspect-erlang-beam", path, "--json"], - cwd: root, - }); - expect(result.exitCode, result.stderr).not.toBe(0); - expect(result.stdout).not.toContain("sha256"); - } + const result = await cli.run({ + arguments: ["inspect-erlang-beam", "", "--json"], + cwd: root, + }); + expect(result.exitCode, result.stderr).not.toBe(0); + expect(result.stdout).not.toContain("sha256"); }); cliTest("reports a truncated BEAM as invalid input", async ({ cli }) => {