From 01b0cfe2055e23cf03870d9a9f60648037b4005e Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:30:08 +0200 Subject: tests run on OpenBSD; a tool's error message survives one large write; lock pids beyond 32 bits name no process --- cmd/krino/hostile_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/krino/hostile_test.go b/cmd/krino/hostile_test.go index 16a5b19..ad10ba8 100644 --- a/cmd/krino/hostile_test.go +++ b/cmd/krino/hostile_test.go @@ -50,7 +50,9 @@ func TestHostileNamesNeverReachTheTerminal(t *testing.T) { if err := os.Mkdir(bin, 0o755); err != nil { t.Fatal(err) } - tool := "#!/bin/sh\nprintf 'bad \\033[2Jpdf\\n' >&2\nexit 1\n" + // printf by its own PATH: PATH below holds only bin, and printf is not a + // shell builtin everywhere (OpenBSD). + tool := "#!/bin/sh\nPATH=/usr/bin:/bin\nprintf 'bad \\033[2Jpdf\\n' >&2\nexit 1\n" if err := os.WriteFile(filepath.Join(bin, "pdftotext"), []byte(tool), 0o755); err != nil { t.Fatal(err) } -- cgit v1.3