Document and validate preflight readiness

This commit is contained in:
2026-11-27 01:26:07 +00:00
parent a9ab8e59b3
commit 7874ea648b
14 changed files with 143 additions and 35 deletions

View File

@@ -68,3 +68,17 @@ func TestTranscriptStreamWriteFailure(t *testing.T) {
t.Fatalf("write failure lost: %+v", failures)
}
}
func TestProbeSkipsNamedPipeWithoutOpeningIt(t *testing.T) {
fifo := filepath.Join(t.TempDir(), "output.pipe")
if err := syscall.Mkfifo(fifo, 0600); err != nil {
t.Fatal(err)
}
checked, err := CheckOutput(OutputSelection{TranscriptPath: fifo})
if err != nil {
t.Fatal(err)
}
if err := ProbeOutput(context.Background(), checked); err != nil {
t.Fatal(err)
}
}