aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/spruntime_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-08 08:03:50 +0900
committerOphestra <cat@gensokyo.uk>2025-12-08 08:53:04 +0900
commit87781c765844409226804157546753b84ef3c6b4 (patch)
tree4fa7bdbe890979badada6c36183a2ff25b7b85a8 /internal/outcome/spruntime_test.go
parent0c38fb7b6a17bed9392a4cf46fc752bc2de8eb18 (diff)
treewide: include PipeWire op and enforce PulseAudio check
This fully replaces PulseAudio with PipeWire and enforces the PulseAudio check and error message. The pipewire-pulse daemon is handled in the NixOS module. Closes #26. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/spruntime_test.go')
-rw-r--r--internal/outcome/spruntime_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/outcome/spruntime_test.go b/internal/outcome/spruntime_test.go
index 18f3ce9c..58cf90d7 100644
--- a/internal/outcome/spruntime_test.go
+++ b/internal/outcome/spruntime_test.go
@@ -40,7 +40,7 @@ func TestSpRuntimeOp(t *testing.T) {
// this op configures the container state and does not make calls during toContainer
}, &container.Params{
Ops: new(container.Ops).
- Tmpfs(fhs.AbsRunUser, 1<<12, 0755).
+ Tmpfs(fhs.AbsRunUser, xdgRuntimeDirSize, 0755).
Bind(m("/proc/nonexistent/tmp/hakurei.0/runtime/9"), m("/run/user/1000"), std.BindWritable),
}, paramsWantEnv(config, map[string]string{
"XDG_RUNTIME_DIR": "/run/user/1000",
@@ -67,7 +67,7 @@ func TestSpRuntimeOp(t *testing.T) {
// this op configures the container state and does not make calls during toContainer
}, &container.Params{
Ops: new(container.Ops).
- Tmpfs(fhs.AbsRunUser, 1<<12, 0755).
+ Tmpfs(fhs.AbsRunUser, xdgRuntimeDirSize, 0755).
Bind(m("/proc/nonexistent/tmp/hakurei.0/runtime/9"), m("/run/user/1000"), std.BindWritable),
}, paramsWantEnv(config, map[string]string{
"XDG_RUNTIME_DIR": "/run/user/1000",
@@ -94,7 +94,7 @@ func TestSpRuntimeOp(t *testing.T) {
// this op configures the container state and does not make calls during toContainer
}, &container.Params{
Ops: new(container.Ops).
- Tmpfs(fhs.AbsRunUser, 1<<12, 0755).
+ Tmpfs(fhs.AbsRunUser, xdgRuntimeDirSize, 0755).
Bind(m("/proc/nonexistent/tmp/hakurei.0/runtime/9"), m("/run/user/1000"), std.BindWritable),
}, paramsWantEnv(config, map[string]string{
"XDG_RUNTIME_DIR": "/run/user/1000",
@@ -117,7 +117,7 @@ func TestSpRuntimeOp(t *testing.T) {
// this op configures the container state and does not make calls during toContainer
}, &container.Params{
Ops: new(container.Ops).
- Tmpfs(fhs.AbsRunUser, 1<<12, 0755).
+ Tmpfs(fhs.AbsRunUser, xdgRuntimeDirSize, 0755).
Bind(m("/proc/nonexistent/tmp/hakurei.0/runtime/9"), m("/run/user/1000"), std.BindWritable),
}, paramsWantEnv(config, map[string]string{
"XDG_RUNTIME_DIR": "/run/user/1000",