aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/env/env_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-20 02:42:35 +0900
committerOphestra <cat@gensokyo.uk>2026-06-20 02:42:35 +0900
commit58ce1347188b94743ea05a1492c53d53d0e4fa91 (patch)
tree6b5e93b7620096dc6ae1a96bcbaf2a58ca66fb50 /internal/env/env_test.go
parent2066093343c34a7b05d7fb0f1082ce513f2b4c0f (diff)
internal/outcome: attempt nscd path-hiding if present
This avoids creating the mount point on musl setups which accomplishes nothing and can run into permission problems. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/env/env_test.go')
-rw-r--r--internal/env/env_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/env/env_test.go b/internal/env/env_test.go
index 0e5db4a9..cce97da0 100644
--- a/internal/env/env_test.go
+++ b/internal/env/env_test.go
@@ -2,6 +2,7 @@ package env_test
import (
"fmt"
+ "io/fs"
"reflect"
"testing"
@@ -104,7 +105,9 @@ func TestCopyPaths(t *testing.T) {
t.Fatalf("fatalf: %q, want %q", got, tc.fatal)
}
panic(stub.PanicExit)
- }, func() string { return tc.tmp }, func(key string) string { return tc.env[key] })
+ }, func() string { return tc.tmp }, func(key string) string { return tc.env[key] }, func(name string) (fs.FileInfo, error) {
+ return nil, fs.ErrNotExist
+ })
if tc.fatal != "" {
t.Fatalf("copyPaths: expected fatal %q", tc.fatal)