From 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 20:06:26 +0900 Subject: container/check: move absolute pathname This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra --- internal/app/env_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/app/env_test.go') diff --git a/internal/app/env_test.go b/internal/app/env_test.go index 04e21344..cf6a18b3 100644 --- a/internal/app/env_test.go +++ b/internal/app/env_test.go @@ -6,6 +6,7 @@ import ( "testing" "hakurei.app/container" + "hakurei.app/container/check" "hakurei.app/container/stub" "hakurei.app/hst" ) @@ -74,11 +75,11 @@ func TestCopyPaths(t *testing.T) { {"invalid tempdir", nil, "\x00", "invalid TMPDIR: path \"\\x00\" is not absolute", EnvPaths{}}, {"empty environment", make(map[string]string), container.Nonexistent, - "", EnvPaths{TempDir: container.MustAbs(container.Nonexistent)}}, + "", EnvPaths{TempDir: check.MustAbs(container.Nonexistent)}}, {"invalid XDG_RUNTIME_DIR", map[string]string{"XDG_RUNTIME_DIR": "\x00"}, container.Nonexistent, - "", EnvPaths{TempDir: container.MustAbs(container.Nonexistent)}}, + "", EnvPaths{TempDir: check.MustAbs(container.Nonexistent)}}, {"full", map[string]string{"XDG_RUNTIME_DIR": "/\x00"}, container.Nonexistent, - "", EnvPaths{TempDir: container.MustAbs(container.Nonexistent), RuntimePath: container.MustAbs("/\x00")}}, + "", EnvPaths{TempDir: check.MustAbs(container.Nonexistent), RuntimePath: check.MustAbs("/\x00")}}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { -- cgit v1.3.1