diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-27 20:23:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-27 20:23:12 +0900 |
| commit | a220c1b7aeb5a03fab3172a9ad17afcc1868e26c (patch) | |
| tree | cd553da950d353202cee77e65364d109aa66f8d8 /cmd | |
| parent | ea29e6bad114306b78820cb674863a9bf3041fa5 (diff) | |
internal/pipewire: improve path error reporting
This replaces SyscallError with PathError when pathnames are involved.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/hakurei/testsuite/main.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go index 0e031430..4f17a3e3 100644 --- a/cmd/hakurei/testsuite/main.go +++ b/cmd/hakurei/testsuite/main.go @@ -308,6 +308,20 @@ func main() { }) wg.Go(func() { + defer log.Println("validated graceful failure on bad PipeWire socket") + + testsuite.AssertOutput( + "validating PipeWire graceful failure", + "", "hakurei: cannot connect "+ + "/run/pipewire/pipewire-0-manager: no such file or directory\n", + )(testsuite.MustOutput( + ctx, &cred, nil, hst.ExitRequest, "bad PipeWire socket", + "hakurei", "exec", "--pulse", + "true", + )) + }) + + wg.Go(func() { if _, _, err := testsuite.StartHakurei( ctx, &wg, &cred, dbusEnv, func(cmd *exec.Cmd) { cmd.ExtraFiles = cmd.ExtraFiles[:len(cmd.ExtraFiles)-1] |
