diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 23:30:08 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 23:30:08 +0200 |
| commit | 01b0cfe2055e23cf03870d9a9f60648037b4005e (patch) | |
| tree | de9b82c31eec73b86f40e68c91489c3efd877da5 /cmd/krino | |
| parent | 11a2c57c6eeaff0ef963fc6f8b74caa27b147bdb (diff) | |
| download | krino-01b0cfe2055e23cf03870d9a9f60648037b4005e.tar.gz krino-01b0cfe2055e23cf03870d9a9f60648037b4005e.zip | |
tests run on OpenBSD; a tool's error message survives one large write; lock pids beyond 32 bits name no process
Diffstat (limited to 'cmd/krino')
| -rw-r--r-- | cmd/krino/hostile_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) } |
