aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/bwrap_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-25 18:12:41 +0900
committerOphestra <cat@gensokyo.uk>2025-02-25 18:12:41 +0900
commit39dc8e7bd8b07d1549185cc178fd3723797d3c74 (patch)
treeae7b1efc842dfe563221b6c1dd59d54a4c95a215 /helper/bwrap_test.go
parent5a732d153efdcb77919e913384e72b1333e28597 (diff)
dbus: set process group id
This stops signals sent by the TTY driver from propagating to the xdg-dbus-proxy process. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/bwrap_test.go')
-rw-r--r--helper/bwrap_test.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/helper/bwrap_test.go b/helper/bwrap_test.go
index 1569a822..6426434a 100644
--- a/helper/bwrap_test.go
+++ b/helper/bwrap_test.go
@@ -31,7 +31,7 @@ func TestBwrap(t *testing.T) {
})
h := helper.MustNewBwrap(
- sc, "fortify",
+ sc, "fortify", false,
argsWt, argF,
nil, nil,
)
@@ -44,7 +44,7 @@ func TestBwrap(t *testing.T) {
t.Run("valid new helper nil check", func(t *testing.T) {
if got := helper.MustNewBwrap(
- sc, "fortify",
+ sc, "fortify", false,
argsWt, argF,
nil, nil,
); got == nil {
@@ -64,7 +64,7 @@ func TestBwrap(t *testing.T) {
}()
helper.MustNewBwrap(
- &bwrap.Config{Hostname: "\x00"}, "fortify",
+ &bwrap.Config{Hostname: "\x00"}, "fortify", false,
nil, argF,
nil, nil,
)
@@ -74,7 +74,7 @@ func TestBwrap(t *testing.T) {
helper.InternalReplaceExecCommand(t)
h := helper.MustNewBwrap(
- sc, "crash-test-dummy",
+ sc, "crash-test-dummy", false,
nil, argFChecked,
nil, nil,
)
@@ -98,6 +98,11 @@ func TestBwrap(t *testing.T) {
})
t.Run("implementation compliance", func(t *testing.T) {
- testHelper(t, func() helper.Helper { return helper.MustNewBwrap(sc, "crash-test-dummy", argsWt, argF, nil, nil) })
+ testHelper(t, func() helper.Helper {
+ return helper.MustNewBwrap(
+ sc, "crash-test-dummy", false,
+ argsWt, argF, nil, nil,
+ )
+ })
})
}