aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hakurei/testsuite/main.go14
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]